Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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]/


Comment on Re: Golf challange: match U.S. State names
Download Code
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2014-07-13 02:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (245 votes), past polls