Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re (tilly) 2: Golf challange: match U.S. State names

by cforde (Monk)
on Jun 06, 2001 at 03:48 UTC ( #86070=note: print w/ replies, xml ) Need Help??


in reply to Re (tilly) 2: Golf challange: match U.S. State names
in thread Golf challange: match U.S. State names

But the match isn't just on the names, but also on the abutment of names. I think you will get some false positives Eg. 'ZC' and 'OC' etc...

Have fun,
Carl Forde


Comment on Re: Re (tilly) 2: Golf challange: match U.S. State names
Re: Re: Re (tilly) 2: Golf challange: match U.S. State names
by MeowChow (Vicar) on Jun 06, 2001 at 03:54 UTC
    Not so, the regex returns matches in pairs, ie:
    @list = 'foobarbazo' =~ /../g; # sets @list to ('fo','ob','ar','ba',' +zo')
       MeowChow                                   
                   s aamecha.s a..a\u$&owag.print
      Aaahhhh, I see. That's what I get for not testing it first.

      Have fun,
      Carl Forde

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://86070]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2014-12-26 12:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls