Question: In this part, you will write regular expressions for 4 problems and create test cases for them (5 matching, 5 non-matching as previously). You will

In this part, you will write regular expressions for 4 problems and create test cases for them (5 matching, 5 non-matching as previously). You will also practice interpreting a written specification into program requirements - remember, edge cases matter! An example of this is also shown further down.

  1. Even Strings: Strings between 10 and 20 characters (inclusive) which have even lengths.
    • The allowed characters are not specified, and should be considered unrestricted -- maybe there is something in regex for this?
    • Examples: automobile, i<3pancakes14!
    • Non-Examples: 6chars, i<3pancakes13

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!