fork download
  1. sentences <- c("department of work and pensions", "and pensioners", "pensioners", "Pensions", "suspension")
  2. grepl("\\bdepartment of work and \\w+(*SKIP)(*F)|\\bpension", ignore.case = T, perl = T, sentences)
Success #stdin #stdout 0.24s 39124KB
stdin
Standard input is empty
stdout
[1] FALSE  TRUE  TRUE  TRUE FALSE