[R] regex in R

Fred J. phddas at yahoo.com
Mon Mar 22 07:27:42 CET 2004


Hello
I could use some help here with trying to use perl
stype regex to extract the first group of letters
before a ( . )
so if I have a sting AACEE.adiid and wanting AACEE 
i <- "AACEE.adiid"
grep(".+\..?+",i,perl=T)
I must be doing somthing wrong but don't know what it
is?

thanks




More information about the R-help mailing list