public function regex_replace($subject, $pattern, $replacement, $limit = -1)
    {
        return preg_replace($pattern, $replacement, $subject, $limit);
    }
public function regex_replace($subject, $pattern, $replacement, $limit = -1)
    {
        return preg_replace($pattern, $replacement, $subject, $limit);
    }
public function regex_replace ( $ subject , $ pattern , $ replacement , $ limit = - 1 ) { return preg_replace ( $ pattern , $ replacement , $ subject , $ limit ) ; }
Performs a regular expression search and replace.

@see     http://php.net/manual/en/function.preg-replace.php

@param   string  $subject        String or array of strings to search and replace.
@param   mixed   $pattern        Pattern to search for. It can be either a string or an array with strings.
@param   mixed   $replacement    String or array with strings to replace.
@param   integer $limit          Maximum possible replacements for each pattern in each subject string. Default is no limit.
@return  string
Performs a regular expression search and replace .