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
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board