Text & Code tool
✦ Browser-firstRegex Tester
Test regular expressions with live highlighting.
Matches highlighted
Match details
| # | Index | Match | Groups |
|---|
About this tool
Enter a pattern and flags, paste sample text, and see matches highlighted instantly with capture groups listed below. Includes a replace preview. Uses the JavaScript regex engine.
How to use the Regex Tester
- Enter a regular expression and choose flags.
- Paste test text and watch matches highlight live.
- Inspect capture groups and copy the pattern.
Common uses
- Validating input patterns
- Search and replace in code
- Parsing logs
Regex Tester questions
Which regex flavor is used?
JavaScript (ECMAScript) regular expressions.
Why does my pattern behave differently in another language?
Flavors differ in lookbehind, named groups and flags, so confirm in your target language.
Is my text uploaded?
No, matching runs in your browser.