QuestionQ53

Basic Unix Skills

How frequently does ? match the expression that precedes it in a regular expression?

  • A Two or more times
  • B Exactly one time
  • C Any number of times
  • D Zero or one times
  • E One or more times
Explanation

The ? quantifier makes the preceding regular-expression element optional, allowing it to match zero or one time.

Community Discussion

No comments yet. Be the first to start the discussion!