fork download
  1. x <- c("Set", "Set Value", "Set(Value)")
  2. grep('^Set(?:\\s+Value)?$', x, value=TRUE)
  3. grep('\\bSet(?!\\(Value\\))(?:\\s+Value)?\\b', x, perl=TRUE, value=TRUE)
Success #stdin #stdout 0.24s 39568KB
stdin
Standard input is empty
stdout
[1] "Set"       "Set Value"
[1] "Set"       "Set Value"