From: Jet Koten Date: 2010-02-27T06:59:16+09:00 Subject: Re: Regex for "not matching" an unneeded prefix substring? Alexander Jesner wrote: > On 02/26/2010 22:20, Jet Koten wrote: >> end of my code: >> >> "Like New" >> "Very Good" >> "Good" >> "Acceptable" >> > > If you just want to ged rid of the word "Used", you could use something > like this: > > text = "Used - Like New" > text[7, text.length] > => "Like New" > > Regards It works! :) I had to change 7 to 8 to get rid of an extra space, but that did it in a far less complex way than using regex! Thanks. -- Posted via http://www.ruby-forum.com/.