nerdexam
LPI

101-500 · Question #108

What does the ? symbol within regular expressions represent?

The correct answer is C. Match the preceding qualifier zero or one times. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

GNU and Unix Commands

Question

What does the ? symbol within regular expressions represent?

Options

  • AMatch the preceding qualifier one or more times.
  • BMatch the preceding qualifier zero or more times.
  • CMatch the preceding qualifier zero or one times.
  • DMatch a literal ? character.

How the community answered

(39 responses)
  • A
    8% (3)
  • B
    3% (1)
  • C
    87% (34)
  • D
    3% (1)

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#regex quantifiers#pattern matching#regular expressions#text processing

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice