One interesting note about the new RegEx. It works beautifully in 7.0.0,
but when I put it into RegEx Buddy with the PERL setting, I got back out a message: Perl does not support possessive quantifiers «+»
For the second "+" in the "++" sequence. It still worked in TextPad 7, though.
Possessive quantifiers were introduced into Perl in version 5.10, released in 2007.
What does RegEx Buddy have to say about this version: (?!^(?>[^“�\r\n]+|“[^“�\r\n]*�)*$)^.+
which uses an "independent subexpression", which is what lies behind a possessive quantifier and stops backtracking?
It passed RegEx Buddy in Perl mode with flying colors. I also just tried it on the earlier file that caused problems and a new text I just received. It worked beautifully in both cases.
I've discovered I need to do the same gig as for curly quotes with straight quotes. Any suggestions? BTW, the curly quote regex is backed up on my systems. I occasionally look at it and mutter "My precious."
The alteration wasn't obvious to me, I'm afraid. I can do a few things with regular expressions, RegEx 101 level. This stuff seems to be a lot higher level.