developer tool
Regex Tester
Test and debug regular expressions instantly. Supports global, multiline, and case-insensitive flags. Execute patterns against text completely locally.
Processing happens completely locally in your browser. Regular expressions and test texts are never sent to a server.
//g
Result
Highlighted matches will appear here.
Match Details
Match details will appear here.
Quick Reference
| Pattern | Description |
|---|---|
| . | Any character except newline |
| \d | Digit (0-9) |
| \w | Word character (a-z, A-Z, 0-9, _) |
| \s | Whitespace |
| [abc] | Character class |
| ^ / $ | Start / end of line |
| * / + / ? | 0+, 1+, 0 or 1 |
| {n,m} | Between n and m times |
| (group) | Capture group |
| (?:group) | Non-capturing group |
| a|b | Alternation (a or b) |