I want to remove trailing white spaces and tabs from my code without removing empty lines.
I tried:
\\s+$
and:
([^\\n]
You can simply use it like this:
var regex = /( )/g;
Sample: click here