Regular Expressions 101

Community Patterns

1...45678...902

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