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.
Examine what is said, not who speaks.
"But you should never overestimate the ingenuity of the sceptics to come up with a counter-argument." -Myles Allen"Think for yourself!" - Abigail "Time is a poor substitute for thought"--theorbtwo "Efficiency is intelligent laziness." -David Dunham
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
|
---|
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 |
In Section
Seekers of Perl Wisdom