Question: Create regular expressions to match the following patterns Long dates. Example Thursday, December 01, 2016 Short dates. Example 1-Dec-16 Date and time: mm/dd/yyyy hh:mm:ss am|pm.

Create regular expressions to match the following patterns

  1. Long dates. Example "Thursday, December 01, 2016"
  2. Short dates. Example "1-Dec-16"
  3. Date and time: mm/dd/yyyy hh:mm:ss am|pm. Example "12/01/2016 11:30:00 AM"

For each pattern

  1. Create 5 positive examples and 5 negative examples
  2. User your regex to check. (Your regex should match all positive examples but does not match any negative example).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!