Subject: Re: RegEx Question
From: Justin To <tekmc hotmail.com>
Date: Thu, 26 Jun 2008 08:21:24 +0900
References: 306232
In-reply-to: 306232
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
--
Posted via http://www.ruby-forum.com/.