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

Page principale
Supprimer ce message
Auteur: ouadji
Date:  
À: pcre-dev
Sujet: [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 #7 from ouadji <ouadji@???> 2013-10-09 17:32:16 ---
"This existing pattern would break: (3)~\1
It currently matches the string "3~3"."

indeed, well done, you're absolutely right !
I had not thought of that!

"\G{n} would be the obvious syntax for the opposite of a back reference"

g->G ... very NICE deduction!

It's very interesting to talk with the designer of PCRE itself, really!!!
Thank you very much to be so accessible(approachable)
and answer me as easily and simply.

"However, one could use \g{^3} I suppose,
and \g{^-3} and \g{^+3} for relative references,
and \g{^name) for references by name.
(^ is used for "not" in other places, so is better than ~ for this.)"

very good idea.
Here too, you're right!
^ would be a much better choice than ~

so, this new feature soon in PCRE?
...it's just a small joke ;-)

ouadji,


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