in reply to How can I find the contents of an HTML tag?
Parsing HTML using regular expressions can be a complete minefield if you don't know exactly what your data will look like.
In situations like this, you're far better off using a real parser, such as HTML::Parser or one of its sub-classes.
|
|---|