Hi again, need a quick helper with the syntax for regular expressions. Basically I need to match the first 2 letters of a submitted postcode with a list of postcodes that I know are in a certain area (London), to determine that the user is living in London. The list itself is quite long but is sequential, ie:
E1-E18 are all in, as are:
WC1-WC2
EC1-EC4
N1-N22
NW1-NW11
SE1-SE28
SW1-SW20
W1-W14
I just need to build a regexp that can match any of those ranges of values, but I'm a complete newbie at regexps, and can't even figure out how to specify a logical "OR" clause for the regexp to match with... would appreciate any help.
Help with a regexp
Moderator: General Moderators