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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!