Vidyalelo
Ruby Programming · Q20

Regular Expressions in Ruby

Programming · Ruby Programming · question 20

Q20

What is the purpose of the anchor in a regular expression in Ruby?

A.
Matches the start of a string
B.
Matches the end of a string
C.
Matches any character except a newline
D.
Matches the point where the last match ended
Answer

Answer: Option D

Solution

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