I have this string
Phone Number
i’m trying to replace space with $$$
using this code
str.replace(/s+/g, '$$$');
but in output only 2 dollar are there
Phone$$Number
but output should be like this
Phone$$$Number
any solution thanks
I have this string
Phone Number
i’m trying to replace space with $$$
using this code
str.replace(/s+/g, '$$$');
but in output only 2 dollar are there
Phone$$Number
but output should be like this
Phone$$$Number
any solution thanks