public function regexReplace($subject, $pattern, $replace, $limit = -1)
    {
        return preg_replace($pattern, $replace, $subject, $limit);
    }
public function regexReplace($subject, $pattern, $replace, $limit = -1)
    {
        return preg_replace($pattern, $replace, $subject, $limit);
    }
public function regexReplace ( $ subject , $ pattern , $ replace , $ limit = - 1 ) { return preg_replace ( $ pattern , $ replace , $ subject , $ limit ) ; }
Twig wrapper for PHP's preg_replace method

@param mixed $subject the content to perform the replacement on
@param mixed $pattern the regex pattern to use for matches
@param mixed $replace the replacement value either as a string or an array of replacements
@param int   $limit   the maximum possible replacements for each pattern in each subject

@return string|string[]|null the resulting content
Twig wrapper for PHP s preg_replace method