SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[regex] Removing empty lines in Notepad++
Home
Question
Removing empty lines in Notepad++
Press
ctrl + h
(Shortcut for replace).
In the
Find what
zone, type
^\R
( for exact empty lines) or
^\h*\R
( for empty lines with blanks, only).
Leave the
Replace with
zone
empty
.
Check the
Wrap around
option.
Select the
Regular expression
search mode.
Click on the
Replace All
button.
Examples related to
regex
•
Why my regexp for hyphenated words doesn't work?
•
grep's at sign caught as whitespace
•
Preg_match backtrack error
•
regex match any single character (one character only)
•
re.sub erroring with "Expected string or bytes-like object"
•
Only numbers. Input number in React
•
Visual Studio Code Search and Replace with Regular Expressions
•
Strip / trim all strings of a dataframe
•
return string with first match Regex
•
How to capture multiple repeated groups?
Examples related to
notepad++
•
How to view Plugin Manager in Notepad++
•
How to format JSON in notepad++
•
CR LF notepad++ removal
•
How to install a Notepad++ plugin offline?
•
Find duplicates and delete all in notepad++
•
How to compare two files in Notepad++ v6.6.8
•
Notepad++ cached files location
•
How to indent HTML tags in Notepad++
•
How to change background color in the Notepad++ text editor?
•
How do I stop Notepad++ from showing autocomplete for all words in the file