πŸ“Š Machine Learning
Q. The method that performs the search-and-replace operation to strings for pattern matching is
  • (A) searchandreplace()
  • (B) add()
  • (C) edit()
  • (D) replace()
πŸ’¬ Discuss
βœ… Correct Answer: (B) add()

Explanation: The replace() method performs a search-and-replace operation. It takes a regular expression as its first argument and a replacement string as its second argument.

Explanation by: Mr. Dubey
The replace() method performs a search-and-replace operation. It takes a regular expression as its first argument and a replacement string as its second argument.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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