Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Finding patterns

by snape (Pilgrim)
on May 24, 2012 at 00:59 UTC ( [id://972149]=note: print w/replies, xml ) Need Help??


in reply to Finding patterns

This might work for u

if ($seq =~ m/ATGAA(.*)TGCCG/){ print $1; }

Also, the following link1 and link2 talks about the concept of $1 and use of regular expression

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-18 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found