Remove Trailing Whitespace Using BBEdit

Delete / Clear Trailing Whitespace Using BBEdit

To remove unwanted trailing whitespace, you will need to use BBEdit’s grep feature in find and replace. Check the box for Grep and enter this search string:
[ \t]+$

Then leave the replace box empty and do a replace all. This is useful when you copy and paste lines from a minicom session on network equipment.