map = { "arup" => "1989"}
puts "arup".gsub(/(arup)rakshit/, map[\1] )

# ~> -:2: syntax error, unexpected $undefined, expecting ']'
# ~> puts "arup".gsub(/(arup)rakshit/, map[\1] )
# ~>

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