Notepad++ Tips
Arsalan Z
1 min read
Remove white space from a file:
Find ^\s* and Replace with ''
#To replace numbers
^[0-9]+
Go to Search -> Replace
Select "Regular expression" under Search mode.
Use
^\s*
for "Find what" and leave "Replace with" blank.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