How to delete line break in textmate

randomor picture randomor · Aug 4, 2011 · Viewed 13.4k times · Source

How to find and delete all the line breaks? I tried \n and it doesn't work! Regular expression? what kinda of expression?

Answer

randomor picture randomor · Aug 11, 2011

I found the answer in the TextMate IRC channel.

Press Option Return to search for literal line breaks in the Find and Replace panel.

Searching for \n works if you select the "Regular Expression" option, but won't work in the literal search mode.