Vidyalelo
Ruby Programming · Q8

Regular Expressions in Ruby

Programming · Ruby Programming · question 8

Q8

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

A.
Matches the start of a string
B.
Matches the start of a line
Answer
C.
Matches the end of a string
D.
None of the above

Answer: Option B

Solution

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