Hi, I am stuck on this: how to specify a match pattern that means not to 
include 
"abc"?

I tried:

grep("^(abc)", "hello", value=T)
should return "hello". 

while 

grep("^(abc)", "hello abcd foo", value=T)
should return character(0).

But both returned character(0).

Thanks

John

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to