Regex Tester
An in-browser JavaScript regex tester. Enter a pattern, flags, and haystack text to highlight matches and list capture groups. Processing stays on the device. It uses the browser's RegExp engine, not PCRE or .NET.
Frequently asked questions
Which regex flavor is this?
JavaScript (ECMAScript) via your browser's RegExp. It is not PCRE, Python, or .NET.
Are my strings uploaded?
No. Matching runs locally. The pattern and sample text stay in your browser.
What flags can I use?
Common JS flags: g, i, m, s, u, y. Global finds every match, i ignores case, m lets ^ and $ match line edges, s lets a dot match a newline, u turns on Unicode mode, and y (sticky) matches only at the current index.
Why did my pattern error?
Invalid syntax throws a browser RegExp error. Check unescaped slashes or unfinished groups. The message in Matches is the engine error itself.
Can I replace matches?
This version tests and lists matches. Substitution can be added later.
Related tools
- DevJSON Formatterin-browser JSON pretty-printer, minifier, and syntax validator.
- SchoolPercentage CalculatorFind X% of Y, what percent one number is of another, percent change, and an optional percent table.
- DevBarcode GeneratorEncode a SKU or number as Code 128, Code 39, EAN-13, or UPC-A and download PNG or SVG.