[R] regular expression question
Johannes Hüsing
johannes at huesing.name
Thu May 1 18:44:50 CEST 2008
markleeds at verizon.net <markleeds at verizon.net> [Thu, May 01, 2008 at 06:27:15PM CEST]:
> I have strings of the form
>
> TICKER.GGG.XXXXXX.dat
>
> 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
mailto:johannes at huesing.name from such a trifling investment of fact.
http://derwisch.wikidot.com (Mark Twain, "Life on the Mississippi")
More information about the R-help
mailing list