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

Re: self limiting regex help

by ferrency (Deacon)
on May 22, 2002 at 15:23 UTC ( #168468=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "match" if $string =~ /[atcg]*([RYMKSWHBVDN][atcg]*){0,2}/i;
    
  2. or download this
    print "match" if $string and $string =~ /[atcg]*([RYMKSWHBVDN][atcg]*)
    +{0,2}/i;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2019-12-09 13:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?