I have ' 'value in my XML page I want to search and replace All it with '1234',
How it can be done?
I have ' 'value in my XML page I want to search and replace All it with '1234',
How it can be done?
Solution
var str="aaa bbb ccc";
var out=str.replace(/ /g,"1234"); // result: "aaa1234bbb1234ccc"