Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: to get next line of pattern matched

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


in reply to to get next line of pattern matched

Do not use regular expressions to parse HTML. Use a proper tool. For example, using XML::XSH2, you can load the whole file and extract the string easily:
open :F html 1011977.html ; echo //div[@class="PlayVideo"]/following-sibling::text() ;
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011996]
help
Chatterbox?
WinnieB bows, falls over, and tries to stand up again
[marto]: at least gravity is still working
[Discipulus]: welcome WinnieB, good morning marto

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-03-30 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (353 votes). Check out past polls.