Regular Expressions 101

Community Patterns

Open and Closing Markup tags on Single Line Markup

0

Regular Expression
PCRE (PHP <7.3)

/
(?<opening>\<\w)|(?<closing>\<?\/\w*\>)
/
g

Description

Quick Dirty Working

Submitted by Timothy Smith - 8 years ago