Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: regular expression

by choroba (Canon)
on Jan 07, 2013 at 09:36 UTC ( #1011993=note: print w/ replies, xml ) Need Help??

in reply to regular expression

Do not use regular expressions to parse HTML. Use a proper tool. For example, using XML::XSH2, you can load the whole file and find the src attribute easilly:

open :F html 1011981.html ; echo //img[@alt="Clip Style Pic"]/@src ;
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Comment on Re: regular expression
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-11-28 11:23 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (741 votes), past polls