Replace multiple spaces with a comma

Goal: Replace multiple spaces between two texts with a comma. (To process CSV data)

Open notepad++ and press Ctrl+h to call up the replacement window . Select the regular expression in the search mode .

The search target is: [ ]+ replace with,
Use notepad++ regular expressions to replace multiple spaces with a comma

After entering, click  Replace all

Regular expressions for other blank type characters:

\s 表示空白字符。包括,空格,制表符等
“ ” 只表示空格。
\s+ 可匹配至少一个空白字符。
[ ]+ 只表示多个空格。

Guess you like

Origin blog.csdn.net/qq_34626094/article/details/112919708