Strip Trailing Whitespace from Lines in a File


/ Published in: Regular Expression
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. [ \t]+$

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.