Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Using regex to match double letters, and only double letters

by davido (Cardinal)
on Dec 30, 2005 at 05:05 UTC ( [id://519948]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "Match!\n" if $string =~ m/([[:alpha:]])\1/; # Probably good.
    
  2. or download this
    print "Match!\n" if $string =~ m/([a-zA-Z])\1/; # Maybe bad!
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 05:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found