rurban / re-engine-PCRE2

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

/nojit: /dfa: engine-specific options #5

Open rurban opened 7 years ago

rurban commented 7 years ago

support engine-specific options in cperl, like /nojit: /dfa: and handle it there.

new rx options:

PCRE has some specific pcre2syntax (NO_JIT) option, which is not supported upstream though. (LIMIT_MATCH=d), (*LIMIT_DEPTH=d), ... See http://www.pcre.org/current/doc/html/pcre2syntax.html#SEC16

todd-richmond commented 5 years ago

supporting dfa would be a help for issues where perlre regexes can take infinitely long (URI::Find::Schemeless for example). An example simple config mechanism to enable options is the one re::engine::RE2 uses