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.
|
---|
In Section
Seekers of Perl Wisdom