fork download
  1. s="+••• •••• •• •• 99\tSMS\t(185999922)"
  2. p s.match(/\A(?<phone>[^\t]+)\t(?<mode>[^\t]+)\t\((?<device_id>\d+)\)\z/).named_captures
Success #stdin #stdout 0.01s 6680KB
stdin
Standard input is empty
stdout
{"phone"=>"+••• •••• •• •• 99", "mode"=>"SMS", "device_id"=>"185999922"}