hi

"M.raja.gopalan".gsub(/(.*)\./,'')

It gives gopalan as output, but I need to replace until first "."
(i.e)output would be raja.gopalan.

How would I do this?

-- 
Posted via http://www.ruby-forum.com/.