replceAll function is not able to replace \r\r from my string
posted 6 years ago
Facing problem while replacing \r\r (four chars - \,r,\,r) chars from a string with \r\n.
I am working with an application where I make a request to webservice it returns me a bodyText.
In the bodyText the String contains \r\r chars (4 chars) and when I tried to replace them with \r\n
2 chars using replaceAll function it does not replace it. Strange..
When tried to create string using below way then replace all does not work.
I got the solution but looking for the standard solution.
Help is higly appriciated.