C ALLEN last edited by C ALLEN
All '“Test” lines have two spaces before them. I want them to look like this. (removing the 2 spaces before every “T”)
How can I mass do this with the word “Test”, or better yet every single possible word before the very first character on each line?
PeterJones last edited by
You want to remove all leading spaces before every line?
Search what :
Replace with : (empty string)
☑ Regular Expression
(paraphrasing @guy038, the forum’s regex guru, who compiled these great regex resources, but hasn’t shared them in this thread yet):
Here is a good starting point for NPP users unfamiliar with regular expression concepts and syntax:
Modern Notepad++ (since v6.0) uses the Boost C++ Regex library, v1.55.0 (similar to the Perl Regular Common Expressions (PRCE), v5.8):
- search syntax: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
- replace syntax: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html
Other sites with valuable regular expression information include: