23
23
function smarty_modifier_regex_replace($string, $search, $replace)
25
27
if (preg_match('!([a-zA-Z\s]+)$!s', $search, $match) && (strpos($match[1], 'e') !== false)) {
26
28
/* remove eval-modifier from $search */
27
29
$search = substr($search, 0, -strlen($match[1])) . preg_replace('![e\s]+!', '', $match[1]);