<?php str_replace( array|string $search, array|string $replace, string|array $subject, int &$count = null): string|array
<?php $text = preg_replace_callback( $this->regexp(), fn (array $matches): string => str_replace( ['%{alt}', '%{src}'], [ $alt ? $alt($matches[0]) : $matches[0], Twemoji::emoji($matches[0]) ->base($this->base) ->type($this->type) ->url(), ], $replacement ), $text );