fork download
  1. str = "19097147835"
  2. p str.gsub(/\D/, '').sub(/\A1(?=\d{10})/, '').to_i
Success #stdin #stdout 0.01s 6080KB
stdin
Standard input is empty
stdout
9097147835