Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
{\$(\w+|\w+\|\w+)}
/
g

Description

Example:

<title>Home page | {$site_name|to_small}</title> <base href="{$_template_root}">
Submitted by Marek UlwaƄski - 10 years ago