0

I have written an app to compare the response I get for a request with its standard response. If they differ I need to find the difference. Since the response I get for the request has \r and \n in between it doesn't match with the standard response even though the responses are the same.How do I remove these \r and \n which are in the response string I get? Please advice.

<R>
<T>Expired</T>
<K>Service</K>
<E></E>
<S>0,license
</S>
</R>
Kalpa-W
  • 348
  • 3
  • 22
  • @CodeCaster Replace method doesn't help. Please give another solution – Kalpa-W Jun 18 '14 at 11:50
  • "doesn't help" doesn't help. Please provide example input and output, show your code and explain what you have tried. – CodeCaster Jun 18 '14 at 12:04
  • I have added the XML. In there since there is \r\n at the end of S tag, the regular expression I used considers from to as one string and as another string. The regular expression I used is (?:\\s*\\\\s*) Please help. – Kalpa-W Jun 19 '14 at 03:20

0 Answers0