Match on Groups in Regular Expressions

Use Regexp to parse a YYYY-MM-DD date.