Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Just another Perl shrine
 
PerlMonks  

Re^2: Request to correct the perl code for getting substrings

by jwkrahn (Prior)
on Apr 19, 2012 at 22:17 UTC ( #966046=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $string = "CCATGNNNTAACCNNATGNNTAGCC";
    while ( $string =~ /([AG]TG.*?T[AG][AG])/ig ) {
      print "matched at $-[0]: $1\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966046]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2013-05-25 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (519 votes), past polls