Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: multi line regex

by murugu (Curate)
on Jan 09, 2006 at 15:00 UTC ( [id://521957]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://521957]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-23 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found