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
Get step-by-step solutions from verified subject matter experts
