fork(1) download
  1. re = /(?:^.*:\R|\G)\K /
  2. str = 'list:
  3. - first'
  4. result = str.gsub(re, ' ')
  5.  
  6. puts result
  7.  
Success #stdin #stdout 0.01s 6428KB
stdin
Standard input is empty
stdout
list:
  - first