I am trying to replace ‘,”,\ characters with blank.
I use the following code
jQuery.get('/path to file/file.txt',function(data){
data = data.replace(/\'\"\\/g," ");
alert(data);
})
but nothing replaced.
Where am I wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your expression would replace the 3 character sequence
'"\with a space, not the individual chars\,'and". Enclose them in a character class[](and there’s no need to escape with\except for the\).