Regex Tester
Test regular expressions against sample text with live match highlighting.
About This Tool
Write a regular expression and immediately see which parts of your sample text it matches, with matches highlighted inline and each capture group listed separately. Uses the JavaScript regex engine, so patterns behave exactly as they would in browser or Node.js code.
How to Use Regex Tester
- Type your regular expression pattern (flags like g, i, m are supported).
- Paste sample text in the box below.
- Matches are highlighted live, with capture groups listed underneath.
Frequently Asked Questions
Which regex flavor does this use?
Standard JavaScript (ECMAScript) regex syntax, the same engine used in browsers and Node.js.
Can I test capture groups?
Yes, any parenthesized capture groups in your pattern are listed separately below the highlighted matches.