# File formvalidator.rb, line 857 def match_zip(code) regexp = Regexp.new('^(\s*\d{5}(?:[-]\d{4})?\s*)$') match = regexp.match(code) match ? match[0] : nil end