Question: Create a console project. Have users to enter name and credit card number, verify the information. 1 . Name field: - - both first name

Create a console project.
Have users to enter name and credit card number, verify the information.
1. Name field:
-- both first name and last name must be entered separated by a single space.
-- Only letters can be accepted.
-- Use pattern "\b[a-zA-Z]{2,15}\s[a-zA-Z]{2,15}\b" or ^[a-zA-Z]+[a-zA-Z]$l
2. Card Number field:
-- Only digits can be accepted.
-- Pattern: "^[0-9]{12,19}$
Example
Using System TextRegularExpressions;
String

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!