Regular Expressions 101

Library entries

html tags

Vote

4

Regular Expression
pcre

/
^<(?:([A-Za-z0-9][A-Za-z0-9]*)\b[^>]*>(?:.*?)<\/\1>|[A-Za-z0-9][A-Za-z0-9]*\b[^>]*\/>)$
/
gm

Description

Loading markdown...
Submitted by anonymous - 6 years ago