Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by Anonymous Monk
on Apr 16, 2018 at 18:01 UTC ( #1213014=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

Perl regex engine has support for (*SKIP) since version 5.010; so you could write:

/(.)\1((?!\1)|\1*(*SKIP)(*FAIL))/

Log In?
Username:
Password:

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

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












    Results (249 votes). Check out past polls.

    Notices?