Examveda

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

D. Matches exactly n occurrences of the preceding character

Answer: Option C


This Question Belongs to Ruby Programming >> Regular Expressions In Ruby

Join The Discussion

Related Questions on Regular Expressions in Ruby