Hi all,
I am getting a string "test+test1+asd.txt"
and i want to convert it into "test test1 asd.txt"
I am trying to use function str = str.replace("/+/g"," ");
but this is not working
regards, hemant
Hi all,
I am getting a string "test+test1+asd.txt"
and i want to convert it into "test test1 asd.txt"
I am trying to use function str = str.replace("/+/g"," ");
but this is not working
regards, hemant
+1 for S.Mark's answer if you're intent on using a regular expression, but for a single character replace you could easily use:
yourString = yourString.split("+").join(" ");