Regular Expressions 101

Community Patterns

Xml/html regex

1

Regular Expression
PCRE (PHP <7.3)

/
(<\/?\w+[^>]*>)
/

Description

Common regex for use with xml/html files

Submitted by wonzbak - 8 years ago