From: George George Date: 2009-07-23T21:12:51+09:00 Subject: Re: replacing verticle white spaces? Hi, Thanks you for the replies. Both approaches did not seem to achieve what i envisaged. Is because of reading the input as a string? rather than as a file? Maybe to rephrase what i really wanted was to be able to delete the repeated lines and only remain with a single empty line. meaning if a file had the lines; tetetetetetetete tetetettetetetete rererererererere rerererererererr remove the empty lines leaving only a single one tetetetetetetete tetetettetetetete rererererererere rerererererererr Thank you George -- Posted via http://www.ruby-forum.com/.