works for me as well, but is it possible to use that along with the other one to check that the data fits one or the other?
Something like this:
^[0-9]{5}$ OR ^([a-z]{1})([0-9]{1})([a-z]{1}) ([0-9]{1})([a-z]{1})([0-9]{1})$
This doesn't seem to be working.
--------------- Added [DATE]1205350730[/DATE] at [TIME]1205350730[/TIME] ---------------
Sir, yours worked on it's own, thanks. I found
this site that provided the following regex which works, for either US or CAN as needed.
^(\d{5}-\d{4}|\d{5})$|^([a-zA-Z]\d[a-zA-Z] \d[a-zA-Z]\d)$
thanks!
--------------- Added [DATE]1205362842[/DATE] at [TIME]1205362842[/TIME] ---------------
ok, so one more thing which I am trying to add to it and i cannot for the life of me figure it out... the current regex is:
^(\d{5})$|^([A-Z]\d[A-Z] \d[A-Z]\d)$|^(other)$
what i need to also check is that the US zipcode is not equal to 00000
anyone know?