nerdexam
LPI

101-350 · Question #67

What does the + symbol mean in the following grep regular expression: grep '^d[aei]\+d$' /usr/share/dict/words

The correct answer is A. Match the preceding character set ([aei]) one or more times. See the full explanation below for the reasoning.

Question

What does the + symbol mean in the following grep regular expression: grep '^d[aei]+d$' /usr/share/dict/words

Options

  • AMatch the preceding character set ([aei]) one or more times.
  • BMatch the preceding character set ([aei]) zero or more times.
  • CMatch the preceding character set ([aei]) zero or one times.
  • DMatch a literal + symbol.

How the community answered

(31 responses)
  • A
    77% (24)
  • B
    6% (2)
  • C
    13% (4)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 101-350 Practice