Starting from:
$30

$24

Guess.pl Solution

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.

More products