From: Teme Rosi Date: 2009-01-15T02:41:33+09:00 Subject: Regexp in Ruby names = ["My name is Jack"] if names =~ /My name is (\w+)/i puts $1 end What im trying to do with this code is to print rest of the line of the same line where "My name is" is. But it doesnt work. Can anyone help? -- Posted via http://www.ruby-forum.com/.