Solution: Regular Expressions
Take a look at the solution to the previous challenge.
We'll cover the following...
We'll cover the following...
Problem statement
Write code which first prompt the user to enter a regular expression, then prompt the user to enter some input for the regular expression, and compare the two for a match until the user presses the 'Esc' button.
Step-by-step solution
The step-by-step solution is as follows:
Press + to interact
using System.Text.RegularExpressions;
Add a namespace that provides a set of classes for working with regular expressions.
Press + to interact
using System.Text.RegularExpressions;WriteLine("The default regular expression checks for at least one digit.");
...