From: "Jesse B." Date: 2010-03-26T05:09:40+09:00 Subject: Re: index of string from beginning of line vs beginning of file Thank you Jesus, Your solution is much more elegant. However it leaves a blank line where my string was. any idea how to close that gap? i.e. opening text --/text to delete/-- closing text now renders as: opening text closing text and what I am going for is: opening text closing text thanks again for all of your help! -- Posted via http://www.ruby-forum.com/.