如何使用正则表达式删除下面的文本块的所有\r\n
字符(将其转换为仅 1 行) ?<out>...</out>
<nx1>home</nx1>
<nx2>living</nx2>
<out>text one
text continues
and at last!</out>
<m2>dog</m2>
此文本示例的最终结果应为:
<nx1>home</nx1>
<nx2>living</nx2>
<out>text one text continues and at last!</out>
<m2>dog</m2>