Sources for file plugins/smarty/modifier.regex_replace.php in version 2.0
Click on a comment to hide it. Click here to show all comments.
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: modifier
* Name: regex_replace
* Purpose: regular epxression search/replace
* -------------------------------------------------------------
*/
function smarty_modifier_regex_replace($string, $search, $replace)
{
return preg_replace($search, $replace, $string);
}
/* vim: set expandtab: */
?>
