From: George Date: 2008-01-22T05:41:59+09:00 Subject: Re: Is there an easier way to get a match before a position in a string? On Jan 22, 2008 5:14 AM, Michael W. Ryder <_mwryder@worldnet.att.net> wrote: > I could not find any way to get a regexp to search from the end of the > string which would have eliminated the need to reverse the string. str.rindex(/ /, len) ?