fork(1) download
  1. text100 <- "My ### is 1234"
  2. gsub("(?<!\\w)\\#+(?!\\w)","hash",text100, perl=T)
  3.  
Success #stdin #stdout 0.45s 22824KB
stdin
Standard input is empty
stdout
[1] "My hash is 1234"