Regular Expressions 101

Community Patterns

Match Tags in ExpressionEngine

1

Regular Expression
PCRE (PHP <7.3)

/
{(if '?{?)?(.*?)_en-us(.*?)}
/
mg

Description

The second matcher will get EE tags from $tagdata.

Submitted by Kyle Palko - 10 years ago