regex_replace

Top  Previous  Next

A regular expression search and replace on a variable. Use the syntax for preg_replace() from the PHP manual.

Example:

Input:

       John Smith        

Template:

       {#name|regex_replace:"/h/":"H"#}

Output:

       JoHn SmitH