Antoine
Antoine

Reputation: 1739

Notepad++ regex to remove words followed by more than one space

Using the replace functionality of notepad++, I would like to remove (replace by white space) all words in a text file that are followed by more than one white space. What would be the regular expression to do so?

For instance: blabla blabla1 blabla2 blabla3 should become blabla1 blabla2 blabla3

Upvotes: 0

Views: 670

Answers (1)

tchelidze
tchelidze

Reputation: 8318

Try the following .

\w+(?=\s{2,})

This will match words which you should replace.

Upvotes: 3

Related Questions