Examveda

What is the purpose of the \G 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: Option D


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

Join The Discussion

Related Questions on Regular Expressions in Ruby