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

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

by kwaping (Priest)
on Dec 30, 2005 at 02:51 UTC ( #519930=note: print w/replies, xml ) Need Help??


in reply to Re: Using regex to match double letters, and only double letters
in thread Using regex to match double letters, and only double letters

Good solution! I couldn't help but golf it a little. :)
#!/usr/bin/perl -w use strict; while (<DATA>) { print if (/([a-z])\1/i); } __DATA__ balloon hello world foo bar perlmonks merry christmas
  • Comment on Re^2: Using regex to match double letters, and only double letters
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2020-10-25 06:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?