rurban / re-engine-PCRE2

use pcre-jit instead of slow perl regex
Other
1 stars 4 forks source link

fallback to core re_compile #11

Closed rurban closed 7 years ago

rurban commented 7 years ago

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.

rurban commented 7 years ago

Done with 98171b7845f7565c6f99ab0c87b52a62e16d49e9