Reputation: 5814
When You have a replace and you want to replace text with something that contains $ You get a malformed replacement string (interpreter thinks its a variable reference). The $$ doesn't work.
Upvotes: 20
Views: 9660
Reputation: 139
\ $1
if IDE from JetBrains you need type space character between slash and sign dollar
Upvotes: 2
Reputation: 22041
As featured in Regular Expression Syntax Reference - you can use \\$
to escape $ sign.
Upvotes: 21