Hello I have a string like a= " $ 2 187.00"
. I tried removing all the white spaces and the bad characters like a.replaceAll("\\s","").replace("$","")
. but i am getting error
Impossible to parse JSON response: SyntaxError: JSON.parse: bad escaped character
how to remove the bad character in this expression so that the value becomes 2187.00.Kindly help me .Thanks in advance
Syntax error in removing bad character in groovy
528 Views Asked by shashank At
1
It should return
2187.00
.Note
$
has special meaning in double quoted strings literals""
, called asGString
.