Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started