I have a string str= "C - IND - Mom&s >s Restaurantzxc"
. I want to remove the special characters &
from it using regex but the test is failing & I am getting the same string after replacing the special characters.
This is what I have done :
str=str.replace('/\&/g', '&');
Can someone tell me where am I going wrong?