Question: Create a console application named Exercise 0 2 that prompts the user to enter a regular expression, and then prompts the user to enter some

Create a console application named Exercise02 that prompts the user to enter a regular
expression, and then prompts the user to enter some input and compare the two for a match
until the user presses Esc, as shown in the following output:
The default regular expression checks for at least one digit.
Enter a regular expression (or press ENTER to use the default): ???[a-z]+$
Enter some input: apples
apples matches ???[a-z]+$ ? True
Press ESC to end or any key to try again.
Enter a regular expression (or press ENTER to use the default): ^[a-z]+$
Enter some input: abc123xyz
abc123xyz matches ???[a-z]+$ ? False
Press ESC to end or any key to try again.
 Create a console application named Exercise02 that prompts the user to

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!