Re: RFC 72 (v3) Variable-length lookbehind: the regexp engine should also go backward.
[email protected] (Bart Lateur) Sat, 02 Sep 2000 13:52:09 +0200
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Organization | MediaMind |
| Message-ID | <[email protected]> |
On 1 Sep 2000 20:50:20 -0000, Perl6 RFC Librarian wrote: >Imagine a very long input string containing data such as this: > > ... GCAAGAATTGAACTGTAG ... > >If you want to match text that matches /GA+C/, but not when it >follows /G+A+T+/, you cannot at present do so easily. Under this >proposal, you might be able to it like this: /GA+C(?!(?r)T+A+G+)/, or >under the alternative syntax: /GA+C(?`!G+A+T+)/. I think the location of the lookbehind stuff inside the regex is weird. This looks more natural to me: /(?`!G+A+T+)GA+C/ -- Bart.