Back to Tools
Regex Tester
Test and debug regular expressions in real-time. See matches highlighted instantly. All processing happens in your browser.
//g
Regex Quick Reference
Characters
| . | Any character except newline |
| \d | Digit (0-9) |
| \w | Word character (a-z, A-Z, 0-9, _) |
| \s | Whitespace |
| [abc] | Any of a, b, or c |
| [^abc] | Not a, b, or c |
Quantifiers
| * | 0 or more |
| + | 1 or more |
| ? | 0 or 1 |
| {n} | Exactly n times |
| {n,m} | Between n and m times |
Anchors
| ^ | Start of string/line |
| $ | End of string/line |
| \b | Word boundary |
Groups
| (abc) | Capture group |
| (?:abc) | Non-capture group |
| (?<name>abc) | Named capture group |
| a|b | Match a or b |