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

Re: extract ids

by ccn (Vicar)
on Sep 16, 2009 at 07:10 UTC ( #795534=note: print w/replies, xml ) Need Help??


in reply to extract ids

What about this?
perl -lne 'print for /molecule_idref="([^"]+)/g' xmlfile

I've used 'g' modifier to catch ids in a case they occur more than one on a line.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://795534]
help
Chatterbox?
[marto]: how many lawyers does it take to turn on a lightbulb?
[Eily]: make them wear gloves because if they leave fingerprints they have the right to ask you to dispose of the bulb at any time
[Corion]: marto: Heh - on the other hand, that's quite good IMO, as home automation information shouldn't leave the home network anyway...
[Corion]: Also, Twitter now seems to work with JS disabled... It asks me if I want to go to the Twitter legacy version. Progress?!

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2018-05-25 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?