SoFunction
Updated on 2025-03-04

Commonly used text sorting regular expressions for software such as notepad, editplus, etc.

It is definitely not possible to organize texts just by using notepad. It is recommended to use notepad++

Line break \n
Blank line^$
Remove all empty lines, replace ^$\n with empty
Spaces \s
More than 2 spaces \s{2,}
Add custom characters after the entire string, for example, this string is a number, in English, add @ to the end of them
Replace (\w+) with$1@