fork download
  1. s='ABC:2fg45rdvsg|Pizzahut:j34532jdhgj|Dominos:3424232|Pizzahut:3242237|Wendys:3462783|Pizzahut:67688873rg|'
  2. p s.scan(/Pizzahut:([^|]+)/).flatten
Success #stdin #stdout 0.01s 6188KB
stdin
Standard input is empty
stdout
["j34532jdhgj", "3242237", "67688873rg"]