Vidyalelo
Ruby Programming · Q13

Regular Expressions in Ruby

Programming · Ruby Programming · question 13

Q13

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

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

Answer: Option C

Solution

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