Examveda

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

A. String#scan

B. String#extract

C. String#find_all

D. String#match_all

Answer: Option A


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

Join The Discussion

Related Questions on Regular Expressions in Ruby