> So far my regex looks like this (using the {} notation for > consistency > and readability): > > m/[A-Z]{1,2}\d{1,2}[A-Z]{0,1}\W\d{1,1}[A-Z]{2,2}/ > > According to the government document found here (this is the google > cache for those of you without Word):
ISTR (although I can't find where now) that 0 is not valid for the numeric parts. I am not 100% sure on that... If so, you can't have E0 7PT but you can have E20 7PT. Similarly, E4 7PT is valid but E4 0PT is not. So you could do: m/[A-Z]{1,2}[1-9]{1,1}\d{0,1}[A-Z]{0,1}\W[1-9]{1,1}[A-Z]{2,2}/ I also assume you'll be using some form of case-insensitivity in there... -- Andy Kelk Head of Integration, Venda [EMAIL PROTECTED]