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='"'>
In reply to Re^2: Parsing HTML tags with regex
by Perl Mouse
in thread Parsing HTML tags with regex
by jithoosin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |