Regular expressions in date.rb, date_time.rb and time.rb