protected function replace(array &$str, $pattern, $replacement)
    {
        foreach ($str as &$s) {
            $s = preg_replace($pattern, $replacement, $s);
        }
    }
protected function replace(array &$str, $pattern, $replacement)
    {
        foreach ($str as &$s) {
            $s = preg_replace($pattern, $replacement, $s);
        }
    }
protected function replace ( array & $ str , $ pattern , $ replacement ) { foreach ( $ str as & $ s ) { $ s = preg_replace ( $ pattern , $ replacement , $ s ) ; } }
Execute the TRANSFORM mode.

@param string $str The string to be tokenized
Execute the TRANSFORM mode .