logo CodeStepByStep logo


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?

If you do not understand how to solve an exercise or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect tests, etc.), please

Is there a problem? Contact a site administrator.

©, all rights reserved.