Re: [R] Question about PERL lookahead construct in regex's

2020-08-12 Thread Bert Gunter
Thank you. That indeed dispels my brain fog! Best, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Aug 12, 2020 at 6:35 AM Stefan Evert wrote: > >

Re: [R] Question about PERL lookahead construct in regex's

2020-08-12 Thread Stefan Evert
> On 10 Aug 2020, at 18:36, Bert Gunter wrote: > > But this appears to be imprecise (it confused me, anyway). The usual sense > of "matching" in regex's is "match the pattern somewhere in the string > going forward." But in the perl lookahead construct it apparently must > **exactly** match *ev

Re: [R] Question about PERL lookahead construct in regex's

2020-08-11 Thread Greg Snow
I think that the current documentation is correct, but that does not mean that it cannot be improved. The key phrase for me is "from the current position" which says to me that the match needs to happen right there, not just somewhere in the rest of the string. If you used the expression " +t" t