zig-regex
zig-regex copied to clipboard
A regex implementation for the zig programming language
actually this is for zig master sorry
The current tests don't show this because they are using a fixed buffer allocator, but if you try to run compile with a different allocator you see a memory leak:...
See the example, when using regex for validation I would expect `.match` to match on the whole input, but it returns true even if there is extra input. Running Zig...
This makes it easier to use by the zig package manager and gives a more standard target vs. an arbitrary commit hash.
[bug] partialMatch does not match if text that would ordinarily be matched is preceded by newlines
`partialMatch` does not match after newlines: ``` const std = @import("std"); const Regex = @import("zig-regex/src/regex.zig").Regex; test "partialMatch after newlines" { var reg = try Regex.compile(std.testing.allocator, "a"); defer reg.deinit(); try std.testing.expect(try...
It extends the `Capture` expression type to include `capturing` boolean flag to indicate whether it should be captured or not. In compile process, if the capturing flag is `false`, the...
I see there is basic support for group but no some more complex features like Perl flag for named group and non-capturing group. It would be good if there is...