rurban / re-engine-PCRE2

use pcre-jit instead of slow perl regex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fallback to core re_compile

rurban opened this issue · comments

when PCRE2_comp/op_comp failed store the error, and fallback to the core engine compile method.
only of that failed, display the pcre2 error.

this way we can also fallback from unsupported jit patterns.

same could be used for fast dfa passes, eg. with the RE2 engine or hyperscan.

Done with 98171b7