Remove Those Extra Line Returns in Files

Occasionally when I download files for site that I work on, text files have extra returns after every line of text.  It’s annoying, and makes it much harder to work with code like this.  I recently came  across this regular expression to remove these in Dreamweaver, but it will work as well in TextWranger (or any another other text editor that works with regular expressions).

In the find box, enter this:


In the replace box enter this:


Be sure that regular expressions is checked in Dreamweaver, or Grep is checked in TextWrangler, and hit replace all.

Scroll to Top