Re: [R] regular expression question

From: Johannes Hüsing <>
Date: Thu, 01 May 2008 18:44:50 +0200 <> [Thu, May 01, 2008 at 06:27:15PM CEST]:
> I have strings of the form
> but GGG is not always three characters so I can't use substr to pull it
> out of the string.
> Could someone tell me how to use sub to pull out the GGG

Doesn't strsplit() help you more easily here?

Johannes Hüsing               There is something fascinating about science. 
                              One gets such wholesale returns of conjecture  from such a trifling investment of fact.                (Mark Twain, "Life on the Mississippi")

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 01 May 2008 - 17:57:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 01 May 2008 - 18:30:33 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive