memo

Ruby: 正規表現

if str =~ /^abc (\d+) (\d+)/
  num1 = $1.to_i
  num2 = $2.to_i
end