ToolPick

Regex tester

Test JavaScript regular expressions with highlighted matches and capture groups.

Matching runs in a background worker that is stopped after 1.5 seconds, and the test text is limited to 20,000 characters.

How it works

Matching uses the JavaScript RegExp engine with your flags. It runs in a Web Worker that is stopped after 1.5 seconds, so a catastrophically backtracking pattern cannot freeze the page, and the test text is capped at 20,000 characters. The result shows highlighted matches and a table with each match span and its numbered and named groups; at most 1,000 matches are listed.

Runs in your browser; nothing is uploaded.

FAQ

Which regex flavor is this?

ECMAScript JavaScript. Lookbehind and Unicode property escapes work in modern browsers when the u flag is set.

Why did matching stop early?

The tool stops when a time limit is exceeded or input exceeds the size cap. Simplify the pattern or shorten the sample.

Are patterns logged?

No. Patterns and text stay in the page unless you enable site analytics separately; those events exclude your input.

Related developer tools

Bookmark this page for next time, or copy its link. Shared links contain no working input.

Link to this tool: https://www.toolpick.dev/free-tools/regex-tester