- Task
- Find dates formatted with month name spelled out.
-
Example
- May 13, 2000
- Solution
-
[AJFMSOND][a-ceg-il-pr-vy]{2,8}[ ][0-9]{1,2}[,][
][0-9]{4}
- Explanation
-
[AJFMSOND]
The words may begin with the listed uppercase characters. The
list includes the possible month initial letters.
-
[a-ceg-il-pr-vy]{2,8}[ ]
The lowercase letters that are allowed in the names of the
months. There can be between 2 and 8 such lowercase characters, corresponding
to May and September, respectively. The name of the month is followed by a
space.
-
[0-9]{1,2}[,][ ]
The day of the month is represented by a 1 or 2 digit number,
followed by a comma and a space.
-
[0-9]{4}
The year is represented as a four digit number.