I want to remove trailing white spaces and tabs from my code without removing empty lines.
I tried:
\\s+$
and:
([^\\n]
To remove any blank trailing spaces use this:
\n|^\s+\n
I tested in the Atom and Xcode editors.