Validating Subscriber page atributes with Regex

Is there any way to validate attributes on the subscriber pages with regex? We are collecting postcode information so we can see who is subscribing (it is a local residents association) and want to validate that the postcode entered is valid. In our current mailing list system we use this as part of the unwanted subscribers filtering.