- or download this
use re 'debug';
my $sequence_to_parse =">test\nATG\nGGG";
...
Match rejected by optimizer
Freeing REx: "^>.*\n(^(?!>).*$)+"
- or download this
use YAPE::Regex::Explain;
print YAPE::Regex::Explain->new(
...
----------------------------------------------------------------------
) end of grouping
----------------------------------------------------------------------
- or download this
my $sequence_to_parse =">test\nATG\nGGG";
while ( $sequence_to_parse =~ m/(^>.+)|(^.+)/gm ) {
if ( defined $1 ) {
...
got first line $1 (>test)
got other line $2 (ATG)
got other line $2 (GGG)