Regular Expression for pair or single html tag





2
Date Submitted Sun. Jul. 5th, 2009 9:55 PM
Revision 1 of 1
Scripter Cloudgen
Tags Expression | HTML | Regular | tags
Comments 0 comments
The Regular Expression for search a pairs of tag or single tag ended with /.
<\w+[^>]*\/>|<(\w+)[^>]*>(.(?!<\s*\/\s*$1\s*>))*.<\s*\/$1\s*>

Comments

There are currently no comments for this snippet.

Voting

Votes Up


Scripter Cloudgen
Scripter elsevero

Votes Down