Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by jwkrahn (Abbot)
on Apr 19, 2012 at 22:17 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://966046]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-23 06:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found