hi,

puts 'raja(dklfjdfldjkfd)gopalan(fdf)'.gsub(/(\(.*\))/, 'raja')

this gives the output "rajaraja"

But I would like to have the output like raja raja gopalan(fdf)

could you please guide me how to write the regular expression for this?

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