The right way of doing almost anything with HTML is to use the appropriate module. The appropriate module depends somewhat on the task. In this case I'd guess HTML::TreeBuilder is what you want.
Life is too short to reinvent complicated wheels, and regexen for parsing HTML are complicated wheels indeed.
If you need any help using TreeBuilder show us what you have tried with a very small (but complete) code sample showing the issue and a very small data sample as required to show the issue.
In reply to Re: Extracting a substring from HTML
by GrandFather
in thread Extracting a substring from HTML
by richill
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |