On Tue, Oct 29, 2013 at 1:13 PM, Lopez, Dan <lopez...@llnl.gov> wrote:
> grep("^([a-z]+) +\1 +[a-z]+ [0-9]",lines)

Your expression has a typo:

R> grep("^([a-z]+) +\\1 +[a-z]+ [0-9]",lines)
[1] 2


-- 
Sarah Goslee
http://www.functionaldiversity.org

______________________________________________
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