01
Enter a pattern
Paste the expression without slash delimiters, then select only the flags you intend to use.
Test a regular expression against sample text locally, with visible flags, matches, capture groups, and a time limit.
0 / 500 pattern characters
0 / 100,000 sample-text characters
Data handling
Advertising and analytics are separate site services. We do not send selected tool input to them. Read the Privacy Policy for details.
How it works
01
Paste the expression without slash delimiters, then select only the flags you intend to use.
02
Add sample input that includes expected matches and a nearby non-match.
03
Check each matching value, its starting index, and any capture groups before using the pattern elsewhere.
Clear limit
The expression runs away from the main page interface and is stopped after one second. A timeout means the test did not finish within that limit. It does not prove that the pattern is invalid or safe for every possible input.
Pattern and sample text remain in the browser.
The selected JavaScript flags are always shown.
Each reported match lists numbered capture values.
The page shows at most 500 matches for a readable review.
FAQ
No. Enter the pattern only, then choose flags from the visible controls.
Some patterns have expensive behavior on particular text. The worker was terminated to keep the page responsive.
No. It uses the browser's JavaScript regular-expression behavior. Other languages and tools may interpret expressions differently.
Keep working
Compare two texts and spot added, removed, and edited lines with word or character highlights. Your text stays in your browser.
Open tool →Sort pasted lines naturally and remove exact duplicates only when you choose to, entirely in your browser.
Open tool →Format, minify, sort, and validate JSON locally with clear syntax feedback.
Open tool →Inspect an absolute URL, its encoded parts, and repeated query parameters locally without making a request.
Open tool →