I'm not really familar with using regexp with MySQL so hopefully this shouldn't be too difficult for anyone in the know.
I'd like to match the start of postcodes to certain letters e.g. the postcode beginning with S should match postcodes beginning with S followed by a number, followed by any series of characters. For instance, S14 3WA would be matched whereas SW4 9LA should not match.
So far, the regex I have is just REGEXP '^[S0-9.]' but obviously it doesn't work.
Thanks in advance for your help.
I'd like to match the start of postcodes to certain letters e.g. the postcode beginning with S should match postcodes beginning with S followed by a number, followed by any series of characters. For instance, S14 3WA would be matched whereas SW4 9LA should not match.
So far, the regex I have is just REGEXP '^[S0-9.]' but obviously it doesn't work.
Thanks in advance for your help.