fork download
  1. text = "Math\n \n \n 600 rubles / 45 min."
  2. gsub("(?:\n {6,}){3}(\\d)", " \\1", text)
Success #stdin #stdout 0.16s 175424KB
stdin
Standard input is empty
stdout
[1] "Math 600 rubles / 45 min."