public function pregReplace($str, $pattern, $replacement = '', $limit = -1)
    {
        return preg_replace($pattern, $replacement, $str, $limit);
    }
public function pregReplace($str, $pattern, $replacement = '', $limit = -1)
    {
        return preg_replace($pattern, $replacement, $str, $limit);
    }
public function pregReplace ( $ str , $ pattern , $ replacement = '' , $ limit = - 1 ) { return preg_replace ( $ pattern , $ replacement , $ str , $ limit ) ; }
Perform a regular expression search and replace on the given string.

@param string $str
@param string $pattern
@param string $replacement
@param int    $limit

@return string Same string where first character is in upper case
Perform a regular expression search and replace on the given string .