Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
({Block:(\w*)}.*?{\/Block:\2}|{\w+})
/
gsmU

Description

Matches unfilled placeholders and (nested) placeholder blocks

Submitted by Wolf Wortmann - 10 years ago