With this function, you can replace any string in the output using a regular expression replacement.
The function will construct a preg_replace() function call from the parameters like this: $output = preg_replace("^$target^$modifiers", $replace, $output);
The function will construct a preg_replace() function call from the parameters like this: $output = preg_replace("^$target^$modifiers", $replace, $output);