I have UK postcodes stored in a database like this:
EC1-3
S40-45
NE99
So it's the first part of a postcode, followed by a range of numbers (or just one number if there's not a range). So for example, I need a regex that will match EC1-3 with an input of EC1V, but not with EC4R.
Is this possible?
http://stackoverflow.com/questions/164979/uk-postcode-regex-comprehensive – ASA Nov 20 '13 at 09:55