fork download
  1. x <- "<TEXT>Purchased this as a cert pre owned for a great price. \nHad only 10000 miles on it and jumped on it.</TEXT>"
  2. gsub("(<TEXT>.*?)\\h*\\R+\\h*(.*?</TEXT>)", "\\1\\2", x, perl=TRUE)
  3.  
Success #stdin #stdout 0.2s 175424KB
stdin
Standard input is empty
stdout
[1] "<TEXT>Purchased this as a cert pre owned for a great price.Had only 10000 miles on it and jumped on it.</TEXT>"