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(' '));

Popular posts from this blog

Can not connect to git using ssh (Permissions 0644 for '/root/.ssh/id_rsa' are too open.

Upload file on Google cloud storage using Java servlet on google app engine

Android: where to run keytool command in android