original_string: public function regexReplace($subject, $pattern, $replace, $limit = -1)
      {
          return preg_replace($pattern, $replace, $subject, $limit);
      }
code: public function regexReplace($subject, $pattern, $replace, $limit = -1)
      {
          return preg_replace($pattern, $replace, $subject, $limit);
      }
code_tokens: public function regexReplace ( $ subject , $ pattern , $ replace , $ limit = - 1 ) { return preg_replace ( $ pattern , $ replace , $ subject , $ limit ) ; }
docstring: 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
docstring_tokens: Twig wrapper for PHP s preg_replace method