(PHP 4, PHP 5, PHP 7)
Perform a regular expression search and replace
mixed preg_replace ( mixed $pattern, mixed $replacement, mixed $subject [, int $limit = -1 [, int &$count ]] )
Searches subject for matches to pattern and replaces them with replacement.
Parameters:
pattern
The pattern to search for. It can be either a string or an array with strings.
Several PCR