Subject: Re: yet another text parser...
From: Andreas Schwarz <f andreas-s.net>
Date: Wed, 18 Jul 2007 18:48:59 +0900
References: 260413
In-reply-to: 260413
I'd throw it all into one big ugly regex:
s.match(/Query=
(.+?\|.+?)\|.+?\(bits\)\s+Value\s+(.+?)\s+/m).to_a[1..2].join(' ')
=> "gi|23510597 At2g21510"
--
Posted via http://www.ruby-forum.com/.