Regex Find/Replace in Notepad++ including new lines -
need replace/remove multiple occurrences in notepad++ using regex. here example:
.... something<item>text removed or replaced</item> text<item>another text removed or replaced</item> <item>more text removed or replaced</item> ...
i need replace/remove in between "<item>"
, "</item>"
, matches include new line.
so end this:
.... something<item></item> text<item></item> <item></item> ...
one way find/replace:
find what: (<item>).*?(<\/item>)\r?
replace with: $1$2
check the: . matches new line
more information: how use regular expressions in notepad++ (tutorial)
Comments
Post a Comment