Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: extract tag content from VLC webserver via XML::Rules ( m{\Q\E}sx )

by Anonymous Monk
on Jun 25, 2013 at 09:47 UTC ( [id://1040574]=note: print w/replies, xml ) Need Help??


in reply to Re: extract tag content from VLC webserver via XML::Rules
in thread extract tag content from VLC webserver via XML::Rules

If really all you want is that one item and it is on one line of your XML file, use a regex: /^\s*<info name="now_playing">(.*?)<\/info>$/

If you're going to use a regex don't bother with anchors or or backslashes :)

my( $fo ) = m{ \Q<info name="now_playing">\E (.*?) \Q</info>\E }sx;
  • Comment on Re^2: extract tag content from VLC webserver via XML::Rules ( m{\Q\E}sx )
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-25 02:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found