Test and debug regular expressions with real-time highlighting.
| \d | Any digit (0-9) |
| \w | Any word character (a-z, A-Z, 0-9, _) |
| \s | Any whitespace character |
| [abc] | Any character in the set |
| [^abc] | Any character not in the set |
| [a-z] | Any character in the range |
| * | 0 or more times |
| + | 1 or more times |
| ? | 0 or 1 time |
| Curly Braces | Use { x } for exactly x repetitions |
| Curly Braces | Use { x, } for x or more repetitions |
| Curly Braces | Use { x,y } for between x and y repetitions |
| ^ | Start of string/line |
| $ | End of string/line |
| \b | Word boundary |
| (?=pattern) | Positive lookahead |
| (?!pattern) | Negative lookahead |
| (?<=pattern) | Positive lookbehind |
Find all matches rather than stopping after the first match
Ignore case when matching
^ and $ match start/end of line, not just start/end of string
. matches newline characters as well
Treat pattern as a sequence of unicode code points
Matches only from the index indicated by lastIndex property
Remove ads, unlock advanced features, and support our tools.
Upgrade for $3.99/month