Hi There, I have created a form where I am asking the user to input a postcode, how do I validate the field to ensure it is a genuine Postcode format for the UK?
I am using NWC
Thanks
Hi There, I have created a form where I am asking the user to input a postcode, how do I validate the field to ensure it is a genuine Postcode format for the UK?
I am using NWC
Thanks
Best answer by butlerj
@AndyEmery looks like this regular expression should do the trick:
^[A-Z]{1,2}[0-9][A-Z0-9]? ?[0-9][A-Z]{2}$
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.