-->

How to remove all spaces from file in Notepad++?

Author Piyush Gupta

There are two way to remove all spaces from file in Notepad.
  1. Using Regular expression 
  2. Direct Method
Using Regular expression:


To delete all spaces in the file, replace ' +' with '' (quotes only for demonstration, please remove them). You need to have the checkbox "Regular expression" checked.
To remove all spaces and tabs, replace '[ \t]+' with '' (remove quotes).
This works for big files, too, where the solution of direct method will be tiresome.
Direct Method:
No need for regular expressions. In Find (Used Ctrl + H) what add a white space character  and then replace with nothing.

No comments:

Post a Comment