fork download
  1. str = "This message needs to be AccountId: 7854639
  2. parsed in a single key Phone: 823972839563
  3. of the json that I want to produce Email: asd@asd.com"
  4.  
  5. p str.scan(/([^\s]+:[^\n]+)/).flatten# your code goes here
Success #stdin #stdout 0.01s 6508KB
stdin
Standard input is empty
stdout
["AccountId: 7854639", "Phone: 823972839563", "Email: asd@asd.com"]