In case of anchored matches, there is no need to scan the input for possible starting characters. Several other simplifications (optimizations) are possible as well. So the generated code is different.
You can compile the pattern twice though and use the appropriate one. Regards, Zoltan ad...@bugs.exim.org írta: >https://bugs.exim.org/show_bug.cgi?id=2030 > >--- Comment #4 from Giuseppe D'Angelo <dange...@gmail.com> --- >Many thanks for the insight :) > >Out of curiosity what is that makes an anchored match NOT use the JIT when >passed at match time rather than compile time? > >-- >You are receiving this mail because: >You are on the CC list for the bug. >-- >## List details at https://lists.exim.org/mailman/listinfo/pcre-dev > -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev