From: Rodrigo Bermejo Date: 2008-06-26T09:35:58+09:00 Subject: Re: RegEx Question Justin To wrote: > > p.gsub(/[^(v| )]/i) {|m| t.concat(m)} > > > Oh, I got it... but now I'm stuck on how to remove '.' if it's the last > piece of the string > > e.g. "v4.5." > > I want to remove the last "." > > Thanks "v4.5.".gsub(/\.$/,"") -- Posted via http://www.ruby-forum.com/.