Notepad++ Tips

Arsalan ZArsalan Z
1 min read

Remove white space from a file:

Find ^\s* and Replace with ''
#To replace numbers
^[0-9]+
  1. Go to Search -> Replace

  2. Select "Regular expression" under Search mode.

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

  4. Click Replace all

  • ^ means beginning of the line

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

Or

Go to Edit

Blank Operations > Click Trim Leading Space

0
Subscribe to my newsletter

Read articles from Arsalan Z directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Arsalan Z
Arsalan Z