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
- Long dates. Example "Thursday, December 01, 2016"
- Short dates. Example "1-Dec-16"
- Date and time: mm/dd/yyyy hh:mm:ss am|pm. Example "12/01/2016 11:30:00 AM"
For each pattern
- Create 5 positive examples and 5 negative examples
- 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
