Posted By

kouphax on 10/06/08


regex whitespace

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Strip Trailing Whitespace from Lines in a File

 / Published in: Regular Expression

This regular expression matches any trailing whitespace at the end of a line (whitespace and tabs). Replace this with nothing to remove trailing whitespace from files.

  1. [ \t]+$

Report this snippet  

You need to login to post a comment.