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,
After entering, click Replace all
Regular expressions for other blank type characters:
\s 表示空白字符。包括,空格,制表符等
“ ” 只表示空格。
\s+ 可匹配至少一个空白字符。
[ ]+ 只表示多个空格。