Tuesday 15 February 2011

regex - ReplaceAll function in javascript -


I am getting a string "test + test1 + asd.txt" and I convert I want the str = str.replace ("/ + / g", ""); "test1 asd.txt" in the exam

but it is not working

relationship, hemat

  str = str.replace (/ \ + / g, "");  

No comments:

Post a Comment