Juan Doe
Juan Doe

Reputation: 511

Single-space regex replacement on Notepad++

I have a textfile of rows of values, each field delimited by a single space. The end of each row is signalled by the Windows-style {carriage return, newline}.

I would like to replace each spaces with a comma using Notepad++ but I am unfamiliar with whitespace regex on Notepad++.

Any help would be appreciated.

Upvotes: 2

Views: 1644

Answers (1)

Dervall
Dervall

Reputation: 5744

\s works for me at least as a whitespace token, just as it does in normal regular expressions. A single regular space character in the replace dialog works just as well.

Upvotes: 6

Related Questions