Regex Tester
Test and debug regular expressions.
//g
Matches
No matches found
Cheat Sheet
\dDigit\wWord character\sWhitespace^Start of string$End of string.Any characterAbout
A powerful real-time regular expression tester with highlighting and explanation. Perfect for debugging complex patterns.
Key Features
- Real-time matching
- Flag support (g, i, m, s, u, y)
- Capture groups display
- Match indices
How to use
- 1Enter or select the supported input.
- 2Choose the available settings and run the tool.
- 3Review the result, then copy or download it.
Example
Input
Pattern: \d+
Text: Order 42Output
42 · index 6Limitations
- Patterns use JavaScript RegExp syntax and return at most 1,000 matches. Pathological expressions can still be slow.
- Processing happens locally in your browser. Tool input is not uploaded to ToolHub.
Last reviewed: