Function smarty_modifier_regex_replace
Smarty regex_replace modifier plugin
Type: modifier
Name: regex_replace
Purpose: regular expression search/replace
Package: Smarty\PluginsModifier
Author: Monte Ohrt
Link: regex_replace (Smarty online manual)
Located at tpl/smarty/plugins/modifier.regex_replace.php
Author: Monte Ohrt
Link: regex_replace (Smarty online manual)
Located at tpl/smarty/plugins/modifier.regex_replace.php
Parameters summary
string |
$string |
input string |
string|array |
$search |
regular expression(s) to search for |
string|array |
$replace |
string(s) that should be replaced |
integer |
$limit = - 1 |
the maximum number of replacements |
Return value summary
string
|
string |