Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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.

If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!