Regular Expressions 101

Library entries

Regex to find begin and end of a HTML tag with a certain class

Vote

-1

Regular Expression
pcre

/
<([A-Za-z]{1,7}) .*class='([a-zA-Z0-9_ ]{0,})searchedclass[ '].*>.*<\/\1.*>
/
iUs

Description

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