From: "Mikael Björkegren" Date: 2009-05-14T20:58:13+09:00 Subject: Re: Regexp Thanks for the fast reply. Works nice for stripping the last part but not the first. I get the lines before also. /(?:.*?\.)*(.*?monday.*?)\./.match('asdasd . asdas dasd .it is monday morning. hello world') => asdasd . asdas dasd .it is monday morning. > e.g.: > /(?:.*?\.)*(.*?monday.*?)\./.match('asdasd . asdas dasd .it is monday > morning. hello world')[1] > => "it is monday morning" -- Posted via http://www.ruby-forum.com/.