Chopping 9 digit US zipcode down to 5 digits?
Hi
I need a way to chop a 9 digit US zipcode (xxxxx-xxxx) down to a 5 digit US zipcode without using tons of code.
I've been hunting around for a regular expression but have had no luck.
WA Validation doesn't work because I'm not using a form and it generates tons of code anyway.
I'm using ASP and it's a session variable that I want to shorten to 5 digits.
<% Session ("USZipZone") = ZipZone %>
Any ideas how to do this?
Thanks
Craig