sregex
sregex copied to clipboard
A non-backtracking NFA/DFA-based Perl-compatible regex engine matching on large data streams
Hello! I'm trying to find and replace word in UTF-8, but without success. Do you have plan in implementing this function?
``` In file included from src/sregex/sre_vm_thompson_jit.c:16: ./dynasm/dasm_x86.h: In function 'dasm_put': ./dynasm/dasm_x86.h:207:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 207 | if (*p++ == 1 && *p == DASM_DISP) mrm...
``` t/01-sanity-02.t ........... 1/? # Failed test 'TEST 34: - bad regex: x{0, 1}: Unescaped left brace in regex is illegal here in regex; marked by
There is a small typo in src/sregex/sre_vm_thompson_jit.c. Should read `view` rather than `wiew`.
I've been writing a project in Lua/OR and so far relied on a custom regex implementation in Lua-Land because I need access to the AST of parsed expressions. That's not...
when use static link, report -lregex not found, so install static library to /usr/local/lib
The original Pike VM has serious memory leak issues and can crash matching just a few megabytes of text. This patch fixes them.
比如匹配汉字 \u4e00-\u9fa5,结果都不匹配了。
I try to follow the steps to excute the Pike VM(sre_vm_pike_create_ctx then sre_vm_pike_exec). According to the manual , "Different data streams MUST use different ctx instances", so i create another...