Regex Tester
0 matches
/
/
Cheatsheet
Character Classes
- . Any character
- \w Word (a-z, 0-9, _)
- \d Digit (0-9)
- \s Whitespace
- [abc] Any of a, b, or c
- [^abc] Neither a, b, nor c
Quantifiers
- * 0 or more
- + 1 or more
- ? 0 or 1
- {3} Exactly 3
- {3,} 3 or more
Anchors
- ^ Start of string/line
- $ End of string/line
- \b Word boundary
Groups
- (...) Capturing group
- (?:...) Non-capturing group
- (a|b) a or b