Examveda
Examveda

What does the /\A anchor represent in a regular expression in Ruby?

A. Matches one or more occurrences of the previous character

B. Matches any character except a newline

C. Matches the start of a string

D. Matches the end of a string

Answer: Option C


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

Join The Discussion

Related Questions on Regular Expressions in Ruby