Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

a) searchandreplace()
b) add()
c) edit()
d) replace()

Answer: d
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.

Join The Discussion