Hi,
Is it safe or error-free to validate country zip-codes using regular
expressions - especially for countries like UK or Canada, where there
are different alphanumeric formats. Here's what I got for UK -
System.Text.RegularExpressions.Regex(@"^(([A-Z]{1,2}[0-9][0-9A-Z]{0,1})
\ ([0-9][A-Z]{2}))|(GIR\ 0AA)$").
Got this from regex.lib, and needed to know also if there are better
approaches for zip code validation.
Thanks.