in reply to Vertical Regex

Something like this perhaps?
#!/usr/bin/perl use strict; while (<DATA>) { if ( /^{FRG/ ... /^}/ ) { print ">$1\n" if /^acc:(\d+)/; if ( /^seq:/ ... /^\./ ) { next if ( /^seq:/ or /^\./ ); print; } } }

Replies are listed 'Best First'.
Re^2: Vertical Regex
by joomanji (Acolyte) on Jun 04, 2009 at 16:37 UTC
    Thanks for the solution, it quick and easy just to pass out the data that i needed. It works as well! TQ!