A

Admin • 828.03K Points
Coach

Q. The method that performs the search-and-replace operation to strings for pattern matching is

  • (A) searchandreplace()
  • (B) add()
  • (C) edit()
  • (D) replace()

Explanation by: Admin
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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.