/
/
0 matches
Invalid Regular Expression syntax
Real-time analysis
No matches found for current pattern.
Interactive Regex Challenges
Practice solving real-world data extraction and validation problems.
Progress: 0 / 0 Solved
Easy
1. Match Email Addresses
Write a pattern that captures standard email addresses from text.
/
/g
Enter a pattern matching all expected targets.
Regex Syntax Reference
Quick guide to regular expression character classes, quantifiers, and anchors.
Character Classes
- . Any character except newline
- \d Digit [0-9]
- \w Word character [a-zA-Z0-9_]
- \s Whitespace (space, tab, newline)
- [abc] Any single character in set
- [^abc] Any single character NOT in set
Quantifiers
- * 0 or more occurrences
- + 1 or more occurrences
- ? 0 or 1 occurrence (optional)
- {3} Exactly 3 times
- {2,5} Between 2 and 5 times
Anchors & Logic
- ^ Start of string/line
- $ End of string/line
- \b Word boundary position
- a|b Matches either 'a' or 'b'
Groups & Lookarounds
- (abc) Capturing group
- (?:abc) Non-capturing group
- (?=abc) Positive lookahead
- (?!abc) Negative lookahead