Practice
Regex Practice
BasicHands-on regular-expression lessons - write real patterns, run them instantly, and get checked by real tests.
Lessons
- Literal matching and .test()
- Character classes
- Quantifiers
- Anchors and boundaries
- Groups and capture
- Practical validation
- Capstone: extracting prices
- Capstone: normalizing usernames
- Lookahead
- Backreferences
- Greedy vs. lazy quantifiers
- Global flag: find and replace all
- Capstone: reformatting names
- Fix the bug: the pattern that accepts junk