regex - negative grep with multiple elements -


assuming following code using grep

grepl("xyz|aba", results$category) 

how obtain negative statement?

i know done using caret ^ don't seem find right syntax

use negative lookahead.

grepl("^(?!.*(?:xyz|aba))", results$category, perl=t) 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -

java - How can I send the data from a imput type="file" to the controller? -