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 Exercise 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: $
Enter some input: apples
apples matches $ True
Press ESC to end or any key to try again.
Enter a regular expression or press ENTER to use the default: $
Enter some input: abcxyz
abcxyz matches $ False
Press ESC to end or any key to try again.
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
