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

Startseite
Nachricht löschen
Autor: admin
Datum:  
To: pcre-dev
Betreff: [pcre-dev] [Bug 1680] Creating the intersection of two regular expressions
https://bugs.exim.org/show_bug.cgi?id=1680

--- Comment #3 from Philip Hazel <ph10@???> ---
Only lookbehind assertions have to be fixed length; lookahead can be anything
you like. Instead of references like (?2), each separate assertion should use
relative references like (?-2) or (?+2). Probably the pattern should start with
^ and each separate assertion should start with .*? to search lazily from the
start of the subject. Something like /^(?=.*A)(?=.*B)..../ except in cases
where A or B starts with ^, of course.

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