Parsing HTML correctly is non-trivial. You might find it better to use one of the existing modules for parsing the HTML. HTML::Parser and HTML::TreeBuilder come to mind.
In reply to Re: Quick regex for finding something in an OPTION tag
by ig
in thread Quick regex for finding something in an OPTION tag
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |