vendor/smarty/smarty/libs/pluginsmodifier.regex_replace.php

Smarty plugin

Functions

smarty_modifier_regex_replace()

smarty_modifier_regex_replace(string  $string, string|array  $search, string|array  $replace, integer  $limit = -1) : string

Smarty regex_replace modifier plugin Type: modifier<br> Name: regex_replace<br> 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

integer $limit

the maximum number of replacements

Returns

string