Examveda

What does the $ anchor represent in a regular expression in Ruby?

A. Matches the start of a string

B. Matches the end of a string

C. Matches the start of a line

D. Matches the end of a line

Answer: Option D


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

Join The Discussion

Related Questions on Regular Expressions in Ruby