An interactive command-line application to learn and practice regular expressions (regex) right in your terminal. Built with Go and Bubble Tea.
- 🎓 Interactive tutorial with progressive lessons
- 💪 Practice problems to test your skills
- 💾 Progress tracking across sessions
- 🎨 Beautiful terminal UI with gradient text and modern design
wget https://raw.githubusercontent.com/ghousemohamed/learn-regex/main/install.sh -O install.sh && bash install.sh
Or clone and build from source:
git clone https://github.com/ghousemohamed/learn-regex-in-the-terminal.git
cd learn-regex-in-the-terminal
go build
Simply run the application in your terminal:
learn-regex
↑
/↓
orj
/k
: Navigate menu optionsEnter
: Submit regex pattern / Select menu optionTab
: Skip to next lesson/problemShift + Tab
: Go to previous lesson/problemCtrl + r
: Reset progressEsc
: Return to main menuCtrl + c
: Save progress and quit
The tutorial is structured to take you from regex basics to advanced patterns:
- Start with basic character matching
- Progress through special characters and metacharacters
- Learn about quantifiers and groups
- Practice with real-world examples
- Test your skills with challenging problems
Your progress is automatically saved, allowing you to continue where you left off.
This project is built using:
- Go
- Bubble Tea - Terminal UI framework
- Lip Gloss - Style definitions
- Bubbles - TUI components