[R] Regular expressions: offsets of groups

Titus von der Malsburg malsburg at gmail.com
Mon Sep 27 19:25:40 CEST 2010


On Mon, Sep 27, 2010 at 7:16 PM, Henrique Dallazuanna <wwwhsd at gmail.com> wrote:
> You've tried:
>
> gregexpr("b+", "abcdaabbc")

But this would match the third occurrence of b+ in "abcdaabbcbb".  But
in this example I'm only interested in b+ if it's preceded by a+.

  Titus



More information about the R-help mailing list