1.

Character class is used for matching a group of characters enclosed within a pair of _____(a) ( )(b) “ “(c) [ ](d) { }This question was addressed to me at a job interview.The above asked question is from grep command topic in division Filters using Regular Expressions of Unix

Answer»

Correct option is (C) [ ]

The explanation: A REGULAR expression LETS us specify a group of characters enclosed within a pair of rectangular brackets, [ ]. For EXAMPLE, [ra] matches either r or a.



Discussion

No Comment Found

Related InterviewSolutions