Relace all backslash (\) from a string using java script


Use split and join method...

var myText="Hello \I\am java\script";


alert(myText.split('\\').join(' '));

Comments

Popular posts from this blog

Struts 2 - struts tag with boolean property

Android: where to run keytool command in android