From: Gavin Sinclair Date: 2003-09-13T10:18:36+09:00 Subject: Re: String#start_with? / #end_with? On Saturday, September 13, 2003, 10:52:35 AM, Mark wrote: > !self.match(/\A#{Regexp.escape(little_string)}/).nil? > I think this, and the corresponding 'end_with?' method, is now a good > candidate for the String section of the Standard Class Extensions > category on the RubyGarden Wiki. Done. I added an extra implementation which at first blush appears to give better performance. Gavin