Jelix 1.6.40

modifier.regex_replace.php

Plugin from smarty project and adapted for jtpl

Tags
subpackage

jtpl_plugin

copyright

2001-2003 ispi of Lincoln, Inc.

link
http://smarty.php.net/
link
http://jelix.org/
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

Table of Contents

jtpl_modifier_common_regex_replace()  : string
modifier plugin : regular epxression search/replace

Functions

jtpl_modifier_common_regex_replace()

modifier plugin : regular epxression search/replace

jtpl_modifier_common_regex_replace(string $string, string|array<string|int, mixed> $search, string|array<string|int, mixed> $replace) : string

You should provide two arguments, like the first both of preg_replace {$mystring|regex_replace:'/(\w+) (\d+), (\d+)/i':'${1}1,$3'}

Parameters
$string : string
$search : string|array<string|int, mixed>
$replace : string|array<string|int, mixed>
Return values
string

Search results