fork download
  1. x <- c("foo bar", "foo")
  2. grep("(?s)foo(?!.*bar)", x, perl=TRUE, value=TRUE)
Success #stdin #stdout 0.23s 39284KB
stdin
Standard input is empty
stdout
[1] "foo"