About the Regex Tester
Regular expressions are powerful patterns for searching, validating and transforming text, but they are notoriously hard to get right. The Regex Tester shows every match highlighted in your test text as you type, so you can build and debug patterns step by step.
It uses the JavaScript regular expression engine, the same one used in browsers and Node.js, and supports all flags including global, case-insensitive, multiline, dotAll and unicode. The match details panel lists each match with its position, numbered capture groups and named groups. A built-in cheat sheet reminds you of the most common tokens. Use it to validate email addresses, phone numbers, postcodes, extract data from logs or prepare find-and-replace operations.
How to use the Regex Tester
- Enter your regular expression pattern (without slashes).
- Set flags such as g, i or m.
- Paste the text you want to test.
- Review highlighted matches and capture groups.
Frequently asked questions
Which regex flavor does this use?
JavaScript (ECMAScript). Most syntax is shared with PCRE, Python and Java, but some features like lookbehind support and possessive quantifiers differ.
Why do I need to escape backslashes?
In this tester you type the raw pattern, so write \d, not \\d. Double escaping is only needed inside string literals in code.
What does the g flag do?
The global flag finds all matches instead of stopping at the first one.
