OpenReplay Logo
12k
12k

Regex tester

Test and debug regular expressions against sample text, with live match highlighting.

Match details
Enter a regex pattern and test string to see results

About this tool

Write a pattern, paste test text, and see every match highlighted with its capture groups and indices — instant feedback instead of guess-and-rerun.

Use it to build validation patterns, log filters and parsers before they ship.

Patterns run with JavaScript (ECMAScript) regex semantics — the same engine as your frontend code.

Frequently asked questions

Which regex flavor is this?

JavaScript's — what runs in browsers and Node. Most patterns port directly to PCRE, but lookbehind and Unicode classes can differ in older engines.

What do the flags mean?

g finds all matches instead of the first, i ignores case, m makes ^ and $ match per line, s lets . match newlines.

Why does my pattern match nothing?

The most common causes: an unescaped special character (. + ? () []) or a missing g flag when expecting multiple matches.