A small, hands-on CLI for learning regular expressions. It works like a kata: short lessons, immediate feedback, repeat.
Regex is best learned by doing, not by skimming a cheat sheet. regkata gives you a prompt, test cases, and a place to try patterns until they click.
bun install -g regkataOr:
npm install -g regkataregkata- Arrow keys: select a lesson
- Enter: submit your regex
?: show hintexit: return to menu
- 36 lessons, ordered from fundamentals to advanced pattern design
- White Belt fundamentals, Yellow Belt real-world patterns, Orange Belt advanced drills, Green Belt expert challenges
- Instant feedback against multiple test cases
- Progress saved between sessions
- Clean, readable CLI built with Ink
The full lesson list lives on the website so the README stays lean. Run regkata to see the catalog in the CLI.
If you are contributing lessons, use docs/lessons.md for the authoring rules and checklist.
git clone https://github.com/JR-G/regkata.git
cd regkata
bun installbun run devbun run typecheckbun run lintbun run buildbun run checkbun run testCreate a release PR with a semver bump:
bun run release patchAfter that PR is merged to main, tag and publish:
bun run release:tagPublishing is handled by GitHub Actions on v* tags.
MIT © James Glenn