How to use it
- 1
Enter the pattern without the surrounding slashes.
- 2
Toggle the flags you need: global, ignore case, multiline, dot-all, unicode.
- 3
Paste sample text that includes cases that should and should not match.
- 4
Check the highlighted matches and the groups below.
Safe testing
Some patterns, such as (a+)+ against a long string of a’s, take exponential time. The tester runs your pattern in a separate worker and stops it if it does not finish quickly, so the page never freezes. If that happens, your production code would hang on the same input.
Questions
Which regex flavour is this?
JavaScript (ECMAScript), using your browser’s engine, including lookbehind and named groups.
Why does my pattern match an empty string?
Quantifiers like * allow zero occurrences. Use + if at least one character is required.
Is my text uploaded?
No. Matching runs entirely in your browser.
Updated:
