Your regexp looks fine. The only trick is that it will match anywhere in the string, so
a ten digit zip will match with 9 digits. If your string ends you can put $ into your regexp (end of string/line),
otherwise you can match whitespace
In reply to Re: regexp
by swiftone
in thread regexp
by wepu