regkata
v1.3.0
Published
Interactive CLI tool to learn regex through hands-on lessons
Maintainers
Readme
regkata
A small, hands-on CLI for learning regular expressions. It works like a kata: short lessons, immediate feedback, repeat.
Why it exists
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.
Install
bun install -g regkataOr:
npm install -g regkataRun
regkataControls
- Arrow keys: select a lesson
- Enter: submit your regex
?: show hintexit: return to menu
What you get
- 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
Lessons
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.
Development
git clone https://github.com/JR-G/regkata.git
cd regkata
bun installbun run devbun run typecheckbun run lintbun run buildbun run checkTests
bun run testReleases
Create 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.
License
MIT © James Glenn
