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/.