T
Teme Rosi
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?
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?