Regex Tester
Build, test, and visualize regular expressions in real time — with color-coded pattern breakdown and match highlighting.
Quick patterns
//g
Pattern Breakdown
\b\w+\b
EscapeQuantifierAnchorGroupChar classAlternationDot (.)Literal
- \bword boundary
- \wword char [a-zA-Z0-9_]
- +one or more
- \bword boundary
9 matches found in 44 characters
Match Highlight
The quick brown fox jumps over the lazy dog.
Match Details
#1"The"index 0–3
#2"quick"index 4–9
#3"brown"index 10–15
#4"fox"index 16–19
#5"jumps"index 20–25
#6"over"index 26–30
#7"the"index 31–34
#8"lazy"index 35–39
#9"dog"index 40–43
Quick Reference
Character classes
| \d | Digit [0-9] |
| \w | Word char [a-zA-Z0-9_] |
| \s | Whitespace |
| . | Any char (except \n) |
| [abc] | a, b, or c |
| [^abc] | Not a, b, or c |
Quantifiers & Anchors
| + | 1 or more |
| * | 0 or more |
| ? | 0 or 1 |
| {n,m} | n to m times |
| ^ | Start of line |
| $ | End of line |