|
|
|
|
|
by hn92726819
1452 days ago
|
|
> Zig has no concept of a string - it’s just a slice of bytes. This also means Zig has no support for ... regex I used to think the same thing but it makes sense that for a finite state machine, the matcher doesn't need to work with validated strings at all. You should read the first 2 paragraphs of burntsushi's (wrote rust regex implementation and a lot more) doc comment here: https://docs.rs/bstr/latest/bstr/#when-should-i-use-byte-str... |
|