Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-11-27 03:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (178 votes), past polls