Regex Tester
Developer ToolsTest regular expressions and inspect matches and capture groups.
AI suggestions for your description and regular expression. Review before applying.
AI result
Suggestions
AI-generated suggestions may be inaccurate. Review before publishing. AI processing is optional and content is sent to our AI provider only when you run an action.
Optional AI assistance. Your input is only sent to our AI provider when you run an action.
matches
index
Groups:
What is Regex Tester?
Regex Tester runs a regular expression against sample text and shows matches and capture groups.
How to use Regex Tester
- 1 Enter a pattern and any flags.
- 2 Paste the text to test.
- 3 Inspect the highlighted matches and groups.
Supported formats and limits
- Input: pattern and test text
- Output: matches and capture groups
- Runs in your browser
Common uses
- Test a pattern against sample text before using it.
- Inspect captured groups while building an expression.
- Debug a regular expression that is not matching.
Things to know
- JavaScript regex flavour may differ from other languages.
- Catastrophic backtracking can freeze the browser on some patterns.
Privacy and file handling
Testing happens in your browser; no data is uploaded.
Frequently asked questions
Which regex flavour is used?
The tool uses the JavaScript regular expression engine, which matches browser behaviour.
Which regular expression flavour does the tester use?
It uses your browser's JavaScript regular expression engine.
Can I see capture groups?
Yes. Matches and capture groups are highlighted as you edit.
Is my test data uploaded?
No. Everything runs locally in your browser.
Related tools
JSON Formatter
Format, validate, and minify JSON with clear error messages.
Find and Replace
Find and replace text with optional case sensitivity and regex support.
HTML Minifier
Minify HTML by removing comments and unnecessary whitespace.
Text Diff Checker
Find added, removed, and changed lines between two texts.