Machine-translated by Google. Questions are authored in English.
Top

Discussion

The regular expression r+ is equivalent to

  • A.(r|r)*
  • B.rr*
  • C.r* alone
  • D.r|epsilon

Answer: B

One or more occurrences means one occurrence followed by zero or more. The essential difference from r star is that r plus excludes the empty string. That distinction matters when a pattern must not be allowed to match nothing at all.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.