Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions