From: ts Date: 2003-03-16T19:58:58+09:00 Subject: Re: Can't think >>>>> "T" == Tim Bates writes: T> mystring.gsub(/^\s*$/, "") mystring.gsub(/^\s*\n/, '') but this is not the same than mystring.split("\n").delete_if{ |s| s =~ /^\s*$/ }.join("\n") Guy Decoux