Use \A and \z in validates_format_of pattern
wheaties-grunt 1.1.3