Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: UK postcode regex

by Roy Johnson (Monsignor)
on Apr 21, 2005 at 13:51 UTC ( [id://449981]=note: print w/replies, xml ) Need Help??


in reply to UK postcode regex

Two transformations works well:
s/(\w{3,5})\s*(\w{3})/\U$1 $2/; s/ O/ 0/;
Update: conforms to specs cited by Mutant.

Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found