Which regular expression engine does this use?
The one built into your browser, which is the JavaScript engine that follows the ECMAScript specification. The pattern is run with the standard RegExp object, so results match what the same pattern does in JavaScript code in that browser.
Do I type the slashes around the pattern?
No. Type only the pattern in the Pattern box and the flags in the Flags box. In JavaScript code you would write /pattern/flags, but here the two parts are kept apart, so slashes in the box are treated as characters to match.
Which flags can I use?
Any flags your browser's JavaScript supports, such as g, i, m, s, u and y. An unknown letter gives an error. The default is gi, and the Clear button restores it. MDN lists every flag and what it does.
Why do I get only one match?
You probably left out the g flag. Without it the search stops at the first match. Add g to the flags box and press Test expression again to list them all.
Will my pattern work in Python, PHP or Java?
Often, but not always. Basic parts such as classes, groups and quantifiers are shared, yet details differ. Python writes named groups as (?P<name>...), which JavaScript rejects, and inline flags like (?i) do not work here. Test in the language you will use.
Why did I see a message about taking too long?
The test runs in a background worker with a 1 second limit. Some patterns try an enormous number of paths on certain text, known as catastrophic backtracking. The page stops the test and asks you to simplify it.
How do I see my capture groups?
When a match contains capture groups, the page prints a line below it with the start index and the list of groups. Named groups, such as (?<year>\d{4}), are shown by name as well.
Why are there blank lines in my results?
A pattern like a* can match zero characters, and each empty match is counted and listed as a blank line. The count at the top includes them. Use a+ if you want at least one character.
Is my text sent to a server?
No. The pattern and text are tested in your browser, in a worker on your own device. Nothing is uploaded. Still, avoid pasting real passwords or private data into any test box on a shared computer.
How do I test a regular expression?
Enter a JavaScript regular expression, add any flags you need, paste sample text and select Test expression.
Which regex flags can I use?
Use flags supported by JavaScript regular expressions, such as g for all matches, i for case-insensitive matching and m for multiline matching.