Skip to main content

Hi

 

Does anyone know the validation pattern to set for a UK Post Code?  I have searched and tried a number of different patterns but I can't get any to work.

 

Kind Regards

Sana

Hello,

 

Hope this will help you . />A-Z]{1,2}20-9]90-9A-Z]?s?s0-9]9A-Z]{2}/gi;


Didn't work.  I read in another post that you had to put ^ at the beginning and $ at the end.

 

When I type e.g. SS0 0RY doesn't like it.  I tried without spaces and still complains.  Any ideas?


Reply