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

enter image description here

more information: how use regular expressions in notepad++ (tutorial)


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -