fork download
  1. s = "This is an example where numbers 500 - 600 should not be captured separately. This is another example where numbers 500 to 600 should not be captured separately. This is an example where 600 should be captured."
  2. puts s.scan(/\d+ *(?:-|to) *\d+|\d+/)
  3.  
Success #stdin #stdout 0.03s 9720KB
stdin
Standard input is empty
stdout
500 - 600
500 to 600
600