From e5f5c0ee89e0405e6865d2ffc23c27609f1d88f8 Mon Sep 17 00:00:00 2001 From: Nhat Quang Dang Date: Thu, 20 Aug 2026 12:28:36 -0400 Subject: [PATCH 1/2] Add regex.zig Why: regex.zig is not code-generated, but an effort to make the best of Zig features to reimplement RE2 in Zig. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b97be3f..7a1a656 100644 --- a/README.md +++ b/README.md @@ -263,6 +263,7 @@ - [ziglibs/known-folders](https://github.com/ziglibs/known-folders) - Provides access to well-known folders across several operating systems. - [tiehuis/zig-regex](https://github.com/tiehuis/zig-regex) - A regex implementation for the Zig programming language. +- [quangdn42/regex.zig](https://github.com/quangdn42/regex.zig) - A redesign of RE2's linear-time algorithm for Zig. Built around Zig's idioms and explicitness. Supports UTF-8. Small, easy-to-read implementation. - [shaik-abdul-thouhid/ezi-gex](https://github.com/shaik-abdul-thouhid/ezi-gex) - Unicode-aware regex engine for Zig with runtime and comptime compilation, full \p{} Unicode property support, named captures, and custom pluggable backends (engines). - [zoptia/zoptia0regex](https://github.com/zoptia/zoptia0regex) - A regular-expression (regex) library — a faithful, linear-time port of Go's regexp (RE2), proven byte-for-byte identical to Go via ~30k differential tests. - [xcaeser/glob.zig](https://github.com/xcaeser/glob.zig) - Fast and reliable glob pattern matching in pure Zig. From 4bfefd8a12347f7adb1b9dd1a60617866a19169a Mon Sep 17 00:00:00 2001 From: Nhat Quang Dang Date: Thu, 20 Aug 2026 12:50:28 -0400 Subject: [PATCH 2/2] specify UTF-8 is opt-in --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a1a656..e9d7462 100644 --- a/README.md +++ b/README.md @@ -263,7 +263,7 @@ - [ziglibs/known-folders](https://github.com/ziglibs/known-folders) - Provides access to well-known folders across several operating systems. - [tiehuis/zig-regex](https://github.com/tiehuis/zig-regex) - A regex implementation for the Zig programming language. -- [quangdn42/regex.zig](https://github.com/quangdn42/regex.zig) - A redesign of RE2's linear-time algorithm for Zig. Built around Zig's idioms and explicitness. Supports UTF-8. Small, easy-to-read implementation. +- [quangdn42/regex.zig](https://github.com/quangdn42/regex.zig) - A redesign of RE2's linear-time algorithm for Zig. Built around Zig's idioms and explicitness. Supports UTF-8 (opt-in). Small, easy-to-read implementation. - [shaik-abdul-thouhid/ezi-gex](https://github.com/shaik-abdul-thouhid/ezi-gex) - Unicode-aware regex engine for Zig with runtime and comptime compilation, full \p{} Unicode property support, named captures, and custom pluggable backends (engines). - [zoptia/zoptia0regex](https://github.com/zoptia/zoptia0regex) - A regular-expression (regex) library — a faithful, linear-time port of Go's regexp (RE2), proven byte-for-byte identical to Go via ~30k differential tests. - [xcaeser/glob.zig](https://github.com/xcaeser/glob.zig) - Fast and reliable glob pattern matching in pure Zig.