Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by no_slogan (Deacon)
on Jun 06, 2001 at 21:53 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://86321]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found