Question
Regular expression question in Linux (Only write the regular expression. Do not include the egrep command and do not enclose it in single or double
Regular expression question in Linux (Only write the regular expression. Do not include the egrep command and do not enclose it in single or double quotes.):
1. Write a regular expression that you could use with egrep that will match all lines that contain an open parenthesis. Only write the regular expression. Do not include the egrep command and do not enclose it in single or double quotes.
2. Write a regular expression that you could use with egrep that will match all lines that contain an assignment statement of the form variable = value where value is a numeric value and variable is made up of only uppercase or lowercase letters.
3. Write a regular expression that you could use with egrep that will match all sentences that contain at least three words separated by a space. Assume words only contain alphabetic characters. Use the :alpha: class where appropriate.
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