I have a string "$$$$$1.00"
Need to replace all '$' with empty string. I don't know the exact number of '$' as I fetch it from server.
I tried using
"$$$$$1.00".replace(/$/g, "")
which is not working out.
I know I can run through the loop and remove it. Is there any way to do that. Also, why it is not working ?
It is working in this case
I have added the JSfiddle link for the simple executable JSFiddle