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 : Warning :No configuration found for the specified action: 'Login.action' in namespace: '/'

Upload csv file at Google Cloud Storage using java

Read Images from a xlsx file using Apache POI