Vidyalelo
Ruby Programming · Q15

Regular Expressions in Ruby

Programming · Ruby Programming · question 15

Q15

Which method is used to extract all occurrences of a pattern in a string in Ruby?

A.
String#scan
Answer
B.
String#extract
C.
String#find_all
D.
String#match_all

Answer: Option A

Solution

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