Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2015-07-07 18:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls