Many a time we need to replace text in files, we do it manually all the time. But it becomes very much difficult if we need to do that for 1000’s of files and that too we need to replace multiple lines of text. So here I will show how we can replace multi-line text in files via notepad++.
For example we have files in folder:
That contains text:
...... ...... , "permissions": [ "tabs" ] ...... ......
And we need to replace following text with empty text:
, "permissions": [ "tabs" ]
Use code below to use in Find what: and replace file.ext with the filename you are trying to replace text in.
,\r\n "permissions\": \[.*\]
First, click Find All button to see that its working correctly, then click Replace in Files to actually replace the text in them.