Notepad++ Delete Lines with Find & Replace
Fresh3 days ago
Mar 15, 202670661 viewsConfidence Score0%
0%
Problem
Does anyone know how to delete a line using Find & Replace in Notepad++ ? In my Find query it finds the proper lines okay: ^.pPrev.$ In the Replace field, I leave it blank thinking the line should deleted (i.e. replaced with nothing), but the newline and endline characters remain.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Notepad++ Delete Lines with Find & Replace
Low Risk
Use the "Extended" setting in the Replace window (not "Regular expression": I'm sure there's a way to do it with Regular expression, but using "Extended" works fine). Enter " " in the "Find what" field, and leave the "Replace what" field blank. This…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix