Question
PERL - Simple PERL scripts to do the following: Write the following regular expressions. Test them with a script that reads a line from STDIN
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started