cancel
Showing results for 
Search instead for 
Did you mean: 

Postcode format regex

Rhian.Lowe
Level 4

Hi.

Could somebody please help me with the expression that needs to go in the Regex match pattern field to check if the incoming postcode is a valid format? It needs to detect whether there are too many spaces in the middle as well as the usual O instead of 0.

Thanks
Rhian

2 REPLIES 2

LakshmiNarayan3
Level 6

can you provide some sample codes 

positive ones and negative ones which you are referring to

Regards
Lakshmi Narayana

harish.m
MVP

HI Rhian,

If you want to check the spaces two or more you can use this regular expression pattern -  "[ ]{2,}" 



35580.png

You can use instring  function  to verify this - "the usual O instead of 0."

----------------------- If I answered your query. Please mark it as the "Best Answer" [FirstName] [LastName] [Designation] [JobTitle] [City] [State] [Phone]