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

Re: UK postcode regex

by TedPride (Priest)
on Apr 22, 2005 at 10:23 UTC ( [id://450342]=note: print w/replies, xml ) Need Help??


in reply to UK postcode regex

You don't need to use regex for this either:
substr($code, -3, 0) = ' ' if substr($code, -4, 1) ne ' '; substr($code, -3, 1) = '0' if substr($code, -3, 1) eq 'O'; $code = uc($code);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-19 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found