J
Jeff Griffin
I am looking for a good referance on how to validate a string in C#.
Specifically have a string which will contain a postal code that may or may
not be in the US. I need to check this string to decide wheather it is in
the US or outside the US. I think all I really need to do is see if the
string meets the form of five integers. If it does then I will assume that
it is a US zipcode and if it does not then I will assume that it is outside
the US.
Anyways sorry for the long explination but all I really need is a good
referance on how to check the string to see if it is 5 integers or somthing
else.
Thanks, Jeff Griffin
Specifically have a string which will contain a postal code that may or may
not be in the US. I need to check this string to decide wheather it is in
the US or outside the US. I think all I really need to do is see if the
string meets the form of five integers. If it does then I will assume that
it is a US zipcode and if it does not then I will assume that it is outside
the US.
Anyways sorry for the long explination but all I really need is a good
referance on how to check the string to see if it is 5 integers or somthing
else.
Thanks, Jeff Griffin