fork download
  1. s = "2015-12-292016-01-28"
  2. sub("\\B(\\d{4}-\\d{2}-\\d{2})", " \\1", s)
Success #stdin #stdout 0.48s 79168KB
stdin
Standard input is empty
stdout
[1] "2015-12-29 2016-01-28"