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(\'$
........
str.replace(new RegExp('\\$', 'g'), '_');
Becaue $ is special char in js, you need to escape it.
$