Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Golf challange: match U.S. State names

by no_slogan (Deacon)
on Jun 06, 2001 at 21:53 UTC ( #86321=note: print w/replies, xml ) Need Help??


in reply to Golf challange: match U.S. State names

106 charcters, making use of the fact that no abbreviation starts with x, y, or z. gack.
/^[A-W]\w\z/&&"OHILAKTXWVTNVARINYKSDE MIAZWIDCOKYFL MOR MNCAL WYMSCTNM +TNE MD UT ME"=~/$_/|/[WGPM]A|N[DHJ]/

Replies are listed 'Best First'.
Re: Re: Golf challange: match U.S. State names
by Anonymous Monk on Jun 06, 2001 at 23:23 UTC
    How about 105
    /^[A-W]\w\z/&&"OHILAKTXWVTNVARINYKSDE MIAZWIDCOKYFL MOR MNCAL WYMSCTNM +TNJ NH UT"=~/$_/|/[WGPM]A|[MN][DE]/

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://86321]
help
Chatterbox?
[Lady_Aleena]: Corion, it was PerlMonks who kept pushing me to get Linux, so now I know some of the commands to use in word play.
[Corion]: Lady_Aleena: :-D
[Lady_Aleena]: Corion, so do you think the gods would be open to taking over Cookies should I disappear for too long a time?
[Corion]: Lady_Aleena: Yes, I think so, but maybe someone else might also take care of the cookies ;)
[Lady_Aleena]: I'll put it out there.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-04-26 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.