Welcome to Regex Practice
Regular expressions (regex) are powerful patterns for matching text. This course gives you hands-on practice with live feedback.
How This Course Works
You'll use two interactive tools:
Regex Playground - A sandbox where you can experiment freely with any pattern.
Regex Exercises - Guided challenges with specific goals and validation.
Your First Playground
Try typing a pattern below. Matches will be highlighted in green as you type!
Try changing the pattern to Hello - notice how it only matches the exact case.
Now click the i flag button to enable case-insensitive matching. Watch all three greetings light up!
Understanding Flags
Regex flags modify how patterns work:
- g (global) - Find all matches, not just the first
- i (case insensitive) - Ignore uppercase/lowercase
- m (multiline) -
^and$match line starts/ends
Your First Exercise
Tips for Success
- Start simple - Build patterns piece by piece
- Test often - The playground gives instant feedback
- Read the hints - They guide you toward the solution
- Check the solution - Learning from answers is encouraged!
Ready to learn regex? Let's start with literal matching!

