[pcre-dev] [Bug 1680] Creating the intersection of two regul…

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 1680] Creating the intersection of two regular expressions
https://bugs.exim.org/show_bug.cgi?id=1680

--- Comment #2 from David Gausmann <david.gausmann@???> ---
Hello Philip,

thanks for your response.

First, you are right, the intersection of those regular expression is not
^a\d+b$

I didn't knew that lookahead assertions allow dynamic length expressions (I
still remember a "this is not fixed length" error message from PCRE; see bug
#547 where is written that dynamic lenghts are not allowed, but I think that
ticket only affects lookbehind assertions, so I probably jumbled something).

Your suggestion using lookahead assertions could be a solution, but I would
need to do some stuff before, because the user enters the regular expression
and references like (?1) could exist in both regular expressions, which shall
be intersected.

I will test your suggestion. Thanks for your help!


Kind Regards
David Gausmann

--
You are receiving this mail because:
You are on the CC list for the bug.