Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Assignment_5: Guess using Regular Expressions
Write a program called guess (guess.pl) using regular expressions that try to guess what you entered. You may use your own choice of method(s) based on your approach (optional). The skeleton of the program is straight forward which is as follows:
It consists of an infinite loop that iterates until the last function is called.
If the user enters quit, then the program will exit otherwise your program applies several regular expressions to the user’s input to try to determine entered data.
If the input does not match any of the regular expressions, then program display a message indicating that “no match was found.”
Regular expressions should match input data which are listed below:
first name and last name: John Quincy Adams
The regular expression should determine the input data is male or female:
The regular expression should check the input data is street address: 5454 Amesbury Dr
The regular expression matches the city, state and zip code: Dallas, TX 75206
The regular expression should match the email address
The regular expression should match the phone number
The regular expression for currency
The regular expression for Monetary Input: $55.00 or $0.75, etc
The regular expression for debit or credit card number
The regular expression for date
The regular expression for time
The regular expression for URL
The regular expression for IP Address
You should follow the naming convention that is used for Perl programming. Program should include comments that explain each block of code or important statement.
Turn in to Canvas
1)Write the program in Perl, execute your program, capture output and submit a pdf file to Canvas
2)Execute all possible test cases and document your results in pdf against each regular expression for example, your regular expression should cover all possible date format or time format: 12 hr or 24 hr am, pm etc. same for different cards.