fork download
  1. str1 <- "I don't know 'how' to remove these ' things"
  2. gsub("\\b'\\b(*SKIP)(*F)|'", "", str1, perl=TRUE)
Success #stdin #stdout 0.47s 79168KB
stdin
Standard input is empty
stdout
[1] "I don't know how to remove these  things"