Forum: Ruby validates_format_of :zipcode

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9aa1e92a0ebb17fdaad2fa39b4c52b8a?d=identicon&s=25 misiek (Guest)
on 2006-03-17 19:51
(Received via mailing list)
how can I set the validation of the zipcode ?
4108c0021c64d188494cae8dcfc95fd8?d=identicon&s=25 Jon Mr (jon-d)
on 2006-03-17 21:04
you'll want to try a regexp.  look here for the code

http://regexlib.com/DisplayPatterns.aspx?cattabind...

it's in there somewhere...
hope this helps
This topic is locked and can not be replied to.