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 reply to Re: extract ids
by ccn
in thread extract ids
by snape
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |