|
Paul, what should we do about this?
Yes, at the moment you have to do either one of these:
println 'Hi, $aaa'.replaceAll(/\${'$'}aaa/, 'Sergey')
println 'Hi, $aaa'.replaceAll(/\$${''}aaa/, 'Sergey')
I think the solution is to change how we do escaping for slashy strings. |
||||||||||||||||||||||||||||||||||||||||||
println 'Hi, $aaa'.replaceAll("\\\$aaa", 'Sergey')works, so it's something specific to the slash form of strings.