smarty_modifier_regex_replace

Smarty regex_replace modifier plugin Type: modifier Name: regex_replace Purpose: regular expression search/replace

Parameters
string $string

input string

#
string|array $search

regular expression(s) to search for

#
string|array $replace

string(s) that should be replaced

#
int $limit = -1

the maximum number of replacements

#
Returns
string