fork(1) download
  1. text=c("hello, please keep THIS","THIS is important","all THIS should be done","not exactly This","not THHIS", "THAT is something I need, too")
  2. res <- regmatches(text, gregexpr("\\b(THIS|THAT)\\b", text))
  3. unlist(res)
Success #stdin #stdout 0.22s 60768KB
stdin
Standard input is empty
stdout
[1] "THIS" "THIS" "THIS" "THAT"