Regular Expressions 101

Community Patterns

Search "smarty" tags

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 - 9 years ago