Friday, 13 September 2013

Remove trailing spaces in visual studio 2012

Remove trailing spaces in visual studio 2012

I want to remove trailing spaces of each line from a text file, keeping
the line breaks intact. I am using Visual studio 2012's Regex feature for
this.
When I am trying to find \s*\r?\n and replace with \r\n it is also
stripping out all the empty lines, which is not expected.
Is there anything that I am missing?

No comments:

Post a Comment