slre icon indicating copy to clipboard operation
slre copied to clipboard

Super Light Regexp engine for C/C++

Results 15 slre issues
Sort by recently updated
recently updated
newest added

In a small C program under Windows, I did this regexp: ... struct slre_cap caps[10]; const char *reg="(([a-z]+)/([a-z]+)@)?([a-z]+)(:(\d+))?"; const char *src = "server:4100"; slre_match(reg, src, strlen(src), caps, 10, 0); ......

Using regex `^/group/([^/]+)/name/([^/]+)$` and an input string of `/group/`, SLRE matches the string incorrectly, with slre_match returning 8 when it should have failed with a return value of -1.

more example please... ip address, long string, etc

This regexp is correct, but fails with slre : (([a-z_-]+)/([a-z@_-]+)@)?([a-z]+) A dirty way to "fix" it is to surround the last group with (...) (([a-z_-]+)/([a-z@_-]+)@)? ( ([a-z]+) )

"^(._?)k" Doesn't match "fooklink", whereas "^(._?k)" match.