in reply to Re^2: Perl regular expression for amino acid sequence
in thread Perl regular expression for amino acid sequence
I didn't read the question that way, but now you've pointed it out, yours could be, and probably is the more correct interpretation.
If the regex engine wouldn't insist that, any reference to a previous capture, in a negative look-behind assertion, *must* be variable length (and therefore disallowed), even when the brackets referenced can only, and must, capture exactly one char.
Then it would be easy to fix this to meet your interpretation of the problem. Alas it does, so there isn't :)
I cannot see fix at the moment.
|
---|
Replies are listed 'Best First'. | |
---|---|
Lookbehind and backreferences
by Roy Johnson (Monsignor) on Dec 02, 2004 at 02:03 UTC | |
by BrowserUk (Patriarch) on Dec 02, 2004 at 02:19 UTC | |
by seaver (Pilgrim) on Dec 02, 2004 at 15:59 UTC | |
by Roy Johnson (Monsignor) on Dec 02, 2004 at 16:23 UTC |