irb(main):001:0> 'hi how are you_I am fine'.sub! /_.*/, ''
=> "hi how are you"

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/