Question: 1. The following metacharacters cannot be used with basic regular expressions: (can have more than 1 answer) a. [a-zA-Z0-9] b. [[:blank:]] c. | d. $
1. The following metacharacters cannot be used with basic regular expressions: (can have more than 1 answer) a. [a-zA-Z0-9] b. [[:blank:]] c. | d. $ 2. Which of the following meanings can a $ character assume within a regular expression? (can have more than 1 answer) a. A literal dollar sign b. Shell variable syntax c. End-of-line anchor for pattern matching d. Match any single character 3. A WORD in regex is a self-contained, contiguous sequence of characters consisting only of letters, numbers, or underscore (_). True or False 4. Which of the following commands uses correct syntax for matching the patterns bunk or bank at the end of a line of text? a. grep 'b[au]nk$' myLine b. grep "b[au]nk$" myLine c. grep b[au]nk$ myLine d. grep 'b[au]nk$" myLine
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
