fork download
  1. s = '{{something|a}} text text {{another|one|with|more|items}}'
  2. p s.scan(/{{(.*?)}}/).flatten.map{ |x| x.split("|") }
Success #stdin #stdout 0.01s 6284KB
stdin
Standard input is empty
stdout
[["something", "a"], ["another", "one", "with", "more", "items"]]