Regex Tester
Test a regular expression against your text and see every match.
Test a regular expression against sample text and instantly see what it matches — including each match’s position and any capture groups. It is the fastest way to build and debug a pattern without switching to a code editor. Enter your expression and flags, paste the text to search, and the results update as you type. Matching runs entirely in your browser using the same regex engine JavaScript uses.
How to use the Regex Tester
- Type your regular expression in the pattern field (no slashes needed).
- Set flags such as g (global), i (ignore case), or m (multiline).
- Paste the text to test below and read the list of matches and groups.
Frequently asked questions
Do I need to add slashes around the pattern?
No. Enter just the pattern itself, and put flags like g or i in the separate Flags field.
Which regex flavour is used?
JavaScript’s built-in regular expressions, so the syntax matches what you would use in JS, Node, and most front-end code.
Does it show capture groups?
Yes. When your pattern has parentheses, each match lists the captured groups as $1, $2, and so on.