[pcre-dev] [Bug 1393] the opposite of a reference

Top Page
Delete this message
Author: ouadji
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1393] the opposite of a reference
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1393




--- Comment #5 from ouadji <ouadji@???> 2013-10-08 20:58:06 ---
"The ... in my pattern was part of the pattern!"

oopss, sorry ! :-)

(3)(?!\1).
         ^
         ^
      This matches the character.


indeed, it works !!

"I realized this isn't quite as simple. And it won't work if the group
has a variable number of characters."

agree with you.
I have thought again deeply of that, this is not simple for this to work in all
cases. it is less simple than at first glance.

"Even more unlikely is the introduction of a new meta-character like the
~ you suggest. It would break many patterns.

????
it would not break the existing patterns. (i don't understand)
The patterns that don't have this character would not be broken
it would affect only the patterns that inclue this new character.

"Perl does keep changing ... I try to keep up with it. So you never know."

why not ? ;-)


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email