akunaakwei/zig-tiny-str-match
tiny-str-match for zig
62bcb1659d4ffde539316203e5e6ee8bda8caed1.tar.gzThis is tiny str match packaged for the zig build system.
. Dot, matches any character (including multi-byte characters)^ Start anchor, matches beginning of string$ End anchor, matches end of string* Asterisk, match zero or more (greedy)+ Plus, match one or more (greedy)? Question, match zero or one (non-greedy){n} Exact Quantifier{n,} Match n or more times{n,m} Match n to m times[abc] Character class, match if one of {'a', 'b', 'c'}[^abc] Inverted class, match if NOT one of {'a', 'b', 'c'}[a-zA-Z] Character ranges, the character set of the ranges { a-z | A-Z }\s Whitespace, \t \f \r \n \v and spaces\S Non-whitespace\w Alphanumeric, [a-zA-Z0-9_]\W Non-alphanumeric\d Digits, [0-9]\D Non-digits| Branch Or, e.g. a|A, \w|\s