• Post Reply Bookmark Topic Watch Topic
  • New Topic

replceAll function is not able to replace \r\r from my string  RSS feed

 
prash patil
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

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.

Regards,
PP.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!