I want to extract the area code from a UK postcode using a regular expression. For example this would be removing "SW" from "SW11 1AW". The area is always the first characters of the string and is always followed by a number. I can't just extract the first two characters as sometimes there is only one letter, eg "E1 4PN". So it needs to match A-Z only from the start of the string until it hits a number and return just the letters. For the sake of argument the string will always be upper case.
Thanks.