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

Read Images from a xlsx file using Apache POI

Struts 2 : Warning :No configuration found for the specified action: 'Login.action' in namespace: '/'

How to create mail message in FRC822 format