HTML::TokeParser might be useful for this. It will return each tag one by one and you can write your logic around it.
Just a tongue-tied, twisted, earth-bound misfit. -- Pink Floyd
In reply to Re: matching
by data64
in thread How to tell if the content of one tag is completely contained within another?
by prasadbabu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |