in reply to Re: Parsing HTML tags with regex
in thread Parsing HTML tags with regex
which does not contain an HTML tag. Oh, and it won't match all HTML tags correctly either. Consider for instance:a < b implies b > a
The first one fails to match because your regex requires that if there are double quoted values inside a tag, they must follow each other. And the second fails because your regex doesn't consider single quoted values.<tag attr1="one" attr2="two"> <tag attr='"'> <tag attr1='"'>
|
|---|