How to delete all lines except lines which have a colon in the 4th column in Notepad++?
- Ctrl+H
- Find what:
^[^:]{4,}.*\R?
- Replace with:
LEAVE EMPTY
- CHECK Wrap around
- CHECK Regular expression
-
UNCHECK
. matches newline
- Replace all
Explanation:
^ # beginning of line
[^:]{4,} # 4 or more any character that is not colon
.* # 0 or more any character
\R? # any kind of llinebreak, optional
Screenshot (before):
Screenshot (after):