117
rated 0 times
[
122]
[
5]
/ answers: 1 / hits: 23113
/ 15 Years ago, fri, march 12, 2010, 12:00:00
As the title states, I need to relace all occurrences of the $ sign in a string variable with an underscore.
I have tried:
str.replace(new RegExp('$', 'g'), '_');
But this doesn't work for me and nothing gets replaced.
More From » replace