regkata

Master Regular Expressions Through Practice

Learn regex the way martial artists learn movesβ€”through deliberate practice and progressive challenges.

npm install -g regkata

Then start training:

regkata

Why regkata?

Regular expressions are powerful but intimidating. Most tutorials throw syntax at you and hope it sticks. regkata takes a different approach: learn by doing.

✨

22 Progressive Lessons

From fundamentals to real-world applications, master regex step by step

🎯

Real-time Validation

Test your regex against multiple cases instantly with immediate feedback

πŸ’Ύ

Progress Tracking

Pick up exactly where you left off, skip completed lessons

πŸ’‘

Hint System

Stuck? Type ? for guidance on any lesson

🎨

Beautiful CLI

Clean, colorful interface built with React and Ink

⚑

Lightning Fast

Powered by Bun for instant startup and smooth experience

What You'll Learn

⬜ White Belt - Fundamentals

Master the core regex patterns and syntax

1. Literal Characters β†’ Match exact text
2. The Dot Metacharacter β†’ Match any character
3. Character Classes β†’ Match sets of characters
4. Character Ranges β†’ Match ranges like [0-9]
5. Negated Character Classes β†’ Match anything BUT these
6. Shorthand Character Classes β†’ \\w, \\d, \\s shortcuts
7. The Plus Quantifier β†’ Match one or more
8. The Star Quantifier β†’ Match zero or more
9. The Question Mark β†’ Make optional
10. Anchors - Start β†’ ^ matches string start
11. Anchors - End β†’ $ matches string end
12. Word Boundaries β†’ \\b matches word edges
13. Alternation β†’ Match this OR that
14. Grouping β†’ Combine patterns
15. Escaping Special Chars β†’ Match literal . ? * etc.

🟨 Yellow Belt - Real World

Apply regex to practical challenges and data extraction

16. Extract IPv4 Addresses β†’ Parse server logs
17. Extract Email Addresses β†’ Find emails in text
18. Extract URLs β†’ Match HTTP/HTTPS links
19. Parse Dates β†’ MM/DD/YYYY format
20. Extract Phone Numbers β†’ US XXX-XXX-XXXX format
21. Extract Hashtags β†’ Social media tags
22. Parse Hex Colors β†’ #RGB and #RRGGBB