Home Email My Account

Remove empty lines and spaces in Notepad++

Go to Search -> Replace

Select "Regular expression" under Search mode.

Use ^\s* for "Find what" and leave "Replace with" blank.

Click Replace all

Regex explanation:

^ means beginning of the line

\s* means any number (even 0) of whitespace characters. Whitespace characters include tab, space, newline, and carriage return.

 

You can also use the built in feature.

Select everything (Ctrl+A), go to Edit>Blank Operation>Trim Trailing Space.

Last Updated: June 18, 2022

Comments

First Name:*
Last Name:*
Email:*
Comment:
Rating:

Domain Registration

Hosting

Website Builder

Web Design

SSL Certificates

Website Security

Microsoft 365

SEO

Email Marketing

Contact Support

WHOIS

© 2025 Fagan Media