From: Alexander Jesner Date: 2010-02-27T06:46:20+09:00 Subject: Re: Regex for "not matching" an unneeded prefix substring? On 02/26/2010 22:20, Jet Koten wrote: > The one from condition [in the code above] is the one that is giving me > a challenge. The string that is sent to condition will always be exactly > one of the following and nothing else at all: > > "Used - Like New" > "Used - Very Good" > "Used - Good" > "Used - Acceptable" > > I'm trying to get them to display as the following in the puts at the > 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