http://www.perlmonks.org?node_id=450043


in reply to UK postcode regex

Unless you're golfing why not do this as three readable and maintainable regexes rather than one monolithic and messy thing?

Replies are listed 'Best First'.
Re^2: UK postcode regex
by Avox (Sexton) on Apr 21, 2005 at 20:04 UTC
    Thats exactly what I was thinking. But perhaps this is one of those, "I feel like I could do this, even though I probably won't want to" things.