codexgpt-5.6-sol · 41 steps · 5m 23s · 4 filessession d0658e65-59e@patrick-toulme

Implement a tiny regex engine in C in this directory. Files: regex.c, regex.h (supports literals, '.', '*', '+', '?', character classes like [a-z] and [^0-9], and anchors ^ $ — recursive backtracking matcher, no libc regex), tests.c (a table-driven test suite with at least 40 cases covering matches, non-matches, and edge cases like empty patterns and greedy repetition), Makefile. Build with make, run the tests, fix failures until all pass.

Discussion

No comments yet. Start the discussion. Recorded by @patrick-toulme.

0
s2-regex