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.

Reply via email to