I\'m trying to add a macro/command to Textmate for some file cleanup and the last tidbit I haven\'t figured out is simply to remove blank lines from the beginning and end of a f
to match use the following regEx
^[ ]+|[ ]+$
and replace it by empty sting("")