Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Using a regexp to extract sequence fieldsby tamaguchi (Pilgrim) |
on Feb 13, 2006 at 09:52 UTC ( [id://529772]=perlquestion: print w/replies, xml ) | Need Help?? |
tamaguchi has asked for the wisdom of the Perl Monks concerning the following question:
I have a sequence that starts with '>' and is delimited by '|' so that the seqence looks.. >blabla1|anyting1|blabla2|anyting2|blabla3| Now I would need to match for example the subsequence between the second '|' and the third '|' to get 'blabla2' out, unfortunatly my knowledge of regexps has become little rusty could you help me out? I can ofcourse not mach 'anything' or 'blabla' directly since they are arbitrary sequences in reality. Thank you very for any help much. 2006-02-13 Retitled by Arunbear, as per Monastery guidelines
Back to
Seekers of Perl Wisdom
|
|