fork(5) download
  1. s = 'one two three four\ five'
  2. puts s.split(/(?<!\\)\s+/)
  3. puts "------"
  4. puts s.scan(/(?:[^\\\s]|\\.)+/)
Success #stdin #stdout 0.02s 9656KB
stdin
Standard input is empty
stdout
one
two
three
four\ five
------
one
two
three
four\ five