How can I delete all \r\n
characters (to convert it to just 1 line) just for the <out>...</out>
block of the text below using regex?
<nx1>home</nx1>
<nx2>living</nx2>
<out>text one
text continues
and at last!</out>
<m2>dog</m2>
The final result for this sample of text should be:
<nx1>home</nx1>
<nx2>living</nx2>
<out>text one text continues and at last!</out>
<m2>dog</m2>