Check Valid Zip Code

 

Hey Friends,

This Post is all about validating a proper Zip Code. Just 2 3 lines of code needed and you can validate your zip code. So below is the line of code that you just need to write.

 

 

 

 

 

 

 

//RWN
IF NOT Regex.Match(ZipCode, ‘^\d{5}$’ ).Success THEN
EXIT(FALSE)
ELSE
EXIT(TRUE);
//RWN

Regex           DotNet                  System.Text.RegularExpressions.Regex.’System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′

CHEERS