Regex Tester
Type a pattern and a test string and see every match with its position and capture groups, updated as you type. This tester uses the JavaScript regular expression engine, so results match what your browser or Node.js code will do.
Also known as: regex online, regular expression tester, test regex, javascript regex tester.
Your data is processed locally in your browser and is not uploaded to our servers.
Features
- Live results as you type
- Capture groups shown for each match
- Flags field (g, i, m, s, u)
How to use the Regex Tester
- Enter your pattern without the surrounding slashes.
- Set flags if needed. The g flag is always applied.
- Paste the test string and read the matches.
Examples
Find digits
Pattern: \d+ Text: order 66 and 7 -> 66, 7
Frequently asked questions
Which regex flavor is this?
JavaScript (ECMAScript). Other languages such as Python or PCRE differ in some features.
Why does my pattern show an error?
The message comes from the browser and usually points to an unclosed group, a bad escape or an invalid flag.