From: John Sikora Date: 2010-10-04T13:28:56+09:00 Subject: Re: save only first line from string? Sorry to blabber on, but I am trying to learn this myself. string.sub!(/^(.*)\n?((?im).+)?/, '\1') seems to work too. js -- Posted via http://www.ruby-forum.com/.