in reply to Re: Re: Re3: BioInformatics - polyA tail search
in thread BioInformatics - polyA tail search
I wrote a little test script to test if you were right (and you were), so my question is what use is the upper range indicator? I thought it allowed you to limit the number of times that something matched, but apparently it does not.
#!/usr/bin/perl use strict; my $seq = "ANANNNNANANANANANANANANANANA"; if ($seq=~/[AN]{10,11}?/) { print "I matched\n"; } else { print "I did not match!\n"; } __OUTPUT__ I matched
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Re3: BioInformatics - polyA tail search
by runrig (Abbot) on Sep 02, 2003 at 20:26 UTC |
In Section
Seekers of Perl Wisdom