Regular Expressions 101

Community Patterns

Placeholder finder

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