Regular Expressions 101

Community Patterns

{if}{endif} matcher

1

Regular Expression
PCRE (PHP <7.3)

/
(?:{if\s+)(.*?)(?:})((?:(?R)|(.*?))*)(?:{endif})
/
s

Description

no description available

Submitted by anonymous - 10 years ago