fork download
  1. text="red 1 green 3 blue"
  2. p text.split(/red|green|blue/)
  3. p text.split(/red|green|blue/, -1)
  4. p text.split(/red|green|blue/).reject(&:empty?)
Success #stdin #stdout 0s 6256KB
stdin
Standard input is empty
stdout
["", " 1 ", " 3 "]
["", " 1 ", " 3 ", ""]
[" 1 ", " 3 "]