Skip to content
Prev 198896 / 398506 Next

Regex matching that gives byte offset?

On Monday 02 November 2009 13:41:45 Prof Brian Ripley wrote:
... all of which I only get to read by the line and a regexpr on that will not 
give me the absolute offset.
"grep -buo" on the unix command line is really fast for this. If I can't find 
the native R equivalent, I'm of a mind to do this via a sys call - ugly and 
not portable, but SOOO fast ... is it possible in R?

Joh