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