Notepad++ 中的正则表达式 Find/Replace 包括新行

Regex Find/Replace in Notepad++ including new lines

需要 replace/remove 使用正则表达式在 notepad++ 中多次出现。 这是一个例子:

....
something<item>text to be removed or replaced</item>
text<item>another text to be
removed or replaced</item>
<item>more text to be removed or 
replaced</item>
...

我需要 replace/remove "<item>""</item>" 之间的所有内容,匹配可以包括一个新行。

所以我最终会得到这样的结果:

....
something<item></item>
text<item></item>
<item></item>
...

一种方法find/replace:

查找内容:(<item>).*?(<\/item>)\R?

替换为:</code></p> <p>选中 <code>Matches new line 复选框。

更多信息:Notepad++ User Manual - Regular Expressions