Q. Which method is used to split a string into substrings based on a regular expression in Ruby?

  • (A) String#break
  • (B) String#segment
  • (C) String#split
  • (D) String#divide
πŸ’¬ Discuss
βœ… Correct Answer: (C) String#split

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
252
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate