[pcre-dev] [Bug 2030] Exact match mode

Páxina inicial
Borrar esta mensaxe
Autor: admin
Data:  
Para: pcre-dev
Asunto: [pcre-dev] [Bug 2030] Exact match mode
https://bugs.exim.org/show_bug.cgi?id=2030

--- Comment #1 from Philip Hazel <ph10@???> ---
Thank you for your suggestion. Unfortunately, it is too late for 10.23, for
which a Release Candidate is currently available for testing.

However, I'm not sure if the feature you ask for is really necessary. You can
already call pcre2_match() with the PCRE2_ANCHORED option to force matching at
the start, and then all you have to do is check that the length of the matched
string is equal to the length of the subject. The only disadvantage of this is
that JIT does not support PCRE2_ANCHORED at match time, so the matching is
always done by the interpreter. A new option to do this check would have the
same issue.

Come to think of it, even without using PCRE2_ANCHORED, you can just check the
that matched string is the entire subject, though this is wasteful of resources
because matching at positions other than the start will be tried.

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