My code:
String newBody = response.body.replace(";\"\";", ";\"|||\";");
Where response.body
is something like this:
"9.3";"";"";"";"";"";
After the execution it results into this:
"9.3";"|||";"";"|||";"";"|||";
Where I would expect this:
"9.3";"|||";"|||";"|||";"|||";"|||";
I assume it has something to do with the logic of the replacement, as I am taking this: ;"";
wanting it to be replaced by this: ;"|||";
while each replaced string is beginning of the new one. But I would still expect it to be handled...