in reply to multi line regex

Hi,

It wont match. Why because you are having the contents of the html file in an array, where each element contains a line each from the html file you read. But you are matching with something else.

Its better to use HTML::TokeParser to parse the html file and get the attribute values.

Regards,
Murugesan Kandasamy
use perl for(;;);

Replies are listed 'Best First'.
Re^2: multi line regex
by ishnid (Monk) on Jan 09, 2006 at 15:46 UTC
    Another alternative is HTML::TokeParser::Simple. Whichever HTML parsing module you eventually choose will obviously be up to yourself. The main point is that you should definitely, definitely use one of them, rather than trying to create custom regexps.