Write the following regular expressions test them with a


PERL - Simple PERL scripts to do the following:

Write the following regular expressions. Test them with a script that reads a line from STDIN and prints "yes" if it matches and "no" if not.

1. Match a name containing a capital letter followed by three lower case letters

2. Match a line that contains in it at least 3 - 15 characters between quotes (without another quote inside the quotes).

3. Replace every digit in a line of text (containing digits) with a #, and print the result.

4. Replace any number of white space charactres (new-line, tab or space) by a single space.

5. Remove all appearances of "is" from a line of text (both lowercase and uppercase letters), and print it.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write the following regular expressions test them with a
Reference No:- TGS02886352

Expected delivery within 24 Hours