logo CodeStepByStep logo

regex8

Language/Type: General regular expressions
Author: Melissa Hovik (on 2018/06/01)

Write a regular expression that will match each of the following patterns:

Dollar amounts of at least $100.00
A time written like 11:04 AM. Times consist of an hour (1-12) followed by a colon (:), followed by minutes (00-59), followed by a space and then either AM or PM.
A string in DD/MM/YYYY format such that there are two digits for both days (DD) and months (MM) and four digits for the year (YYYY). The largest value for DD should be 31 and the largest value for MM should be 12, and nether DD nor MM should be 00. Values less than 10 for DD and MM should start with 0 (e.g. 01/09/2018). YYYY may be any 4 digits.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.