Posted: 5/23/2010
Hi experts,
I have a string in jabvascript . There is a requirement to replace all the blank spaces with a particular character . How can I do so ?
Posted: 6/2/2010
using replace with regular expression you can do this.
var replaceText = "_"; var OutPut= " this is only for testing "; OutPut= OutPut.replace(/\s+/g, replaceText);