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

Re: Words, no consecutive doubled letters but repeated letters

by GrandFather (Saint)
on Oct 27, 2022 at 21:10 UTC ( #11147758=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    my %words = map {$_ => 1} split ' ', "This will search for words with 
    +doubled letters at positions";
    
    print "$_\n" for grep {!/(\w)\1/ && /(\w).+\1/} sort keys %words;
    
  2. or download this
    doubled
    positions
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2023-06-04 01:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (17 votes). Check out past polls.

    Notices?