Vidyalelo
Ruby Programming · Q3

Regular Expressions in Ruby

Programming · Ruby Programming · question 3

Q3

What does the / 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
Answer
D.
Matches the end of a string

Answer: Option C

Solution

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