Q. Which method is used to find the first occurrence of a pattern in a string in Ruby? (A) String#search (B) String#find (C) String#find_pattern (D) String#match ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (D) String#match