Answered step by step
Verified Expert Solution
Link Copied!

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 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions