X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Fsmarty%2FSmarty-2.6.10%2Flibs%2Fplugins%2Fmodifier.regex_replace.php;fp=wwwroot%2Fsmarty%2FSmarty-2.6.10%2Flibs%2Fplugins%2Fmodifier.regex_replace.php;h=0000000000000000000000000000000000000000;hb=e034221efbc7970ec58be22d7517fd3c503dc903;hp=7eee497c85bd677c1757c0bd586be00cf963a720;hpb=c6f21b69e8210bdd0e80cf87f1c2f06dfc848a75;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.regex_replace.php b/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.regex_replace.php deleted file mode 100644 index 7eee497..0000000 --- a/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.regex_replace.php +++ /dev/null @@ -1,33 +0,0 @@ - - * Name: regex_replace
- * Purpose: regular epxression search/replace - * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php - * regex_replace (Smarty online manual) - * @param string - * @param string|array - * @param string|array - * @return string - */ -function smarty_modifier_regex_replace($string, $search, $replace) -{ - if (preg_match('!\W(\w+)$!s', $search, $match) && (strpos($match[1], 'e') !== false)) { - /* remove eval-modifier from $search */ - $search = substr($search, 0, -strlen($match[1])) . str_replace('e', '', $match[1]); - } - return preg_replace($search, $replace, $string); -} - -/* vim: set expandtab: */ - -?>