Vidyalelo
Ruby Programming · Q4

Regular Expressions in Ruby

Programming · Ruby Programming · question 4

Q4

What is the purpose of the + quantifier in a regular expression in Ruby?

A.
Matches zero or one occurrence of the preceding character
B.
Matches zero or more occurrences of the preceding character
C.
Matches exactly n occurrences of the preceding character
D.
Matches one or more occurrences of the preceding character
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board