【发布时间】:2014-05-27 10:58:17
【问题描述】:
如何使用正则表达式删除下面文本的 <out>...</out> 块的所有 \r\n 字符(将其转换为仅 1 行)?
<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>
【问题讨论】:
-
我正在使用 EditPad Pro 正则表达式引擎;我尝试使用环视但没有成功;某事喜欢:(?)\r\n