Write a function which removes from string all non-digit characters and parse the remaining to number. E.g: "hell5o wor6ld" -> 56
Function:
get_number_from_string(s)
def get_number_from_string(s)
s.gsub(/[^0-9]/, '').to_i
end
def get_number_from_string(s)
s.scan(/\d+/).join.to_i
end