I am having to parse a file for mailing addresses… The problem is somelines contain a address and some do not…. The ones that do not contain a mailing address also do not have a zip code… Is there any string pattern match i could use to manage checking for the zip code??? something like
IF not string.isnullorEmpty(_Customer) then
If _Customer"" ZIP CODE STRING TEST "" THEN
{do what it should if its is true}
Else
{Do something else}
End If
end if
Depends how complex you want your zip code checking to be, here’s a method we use to validate US and Canadian Postal Codes: