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
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