How it works
- Type a JavaScript regular expression and flags.
- Paste representative text or load an example.
- Inspect matches, named groups, indices, replacement output and test cases instantly.
Build and debug JavaScript regular expressions locally in your browser. Highlight matches, inspect named capture groups and indices, preview replacements, run pass/fail test cases and share a reproducible link without uploading your text.
Patterns run with the same browser RegExp engine used by modern JavaScript environments, with no server round trip for your sample text.
Matches list numbered captures, named captures and index ranges when the d flag is supported by the browser.
Preview replacement output, generate a custom list from matches and keep small pass/fail cases beside the pattern.
No. The regex processing happens entirely locally on your device.
It uses JavaScript RegExp. It's perfect for testing expressions that will run in Node.js or web environments.
Yes. Named groups are shown separately when the browser supports them.
Yes. The page can copy a link containing the pattern, flags, sample text and output templates.
Yes. JavaScript supports positive and negative lookahead and lookbehind assertions in modern browsers.
Yes. Use the m flag to make ^ and $ match line boundaries instead of the full string.
Generate TypeScript interfaces from a JSON example directly in your browser.
EnglishFree JSON formatter online. Pretty print, validate, minify, sort keys and escape JSON instantly in your browser — no upload, no signup, instant syntax error detection.
EnglishCount words, characters, lines and paragraphs online with a local browser-based text counter.
EnglishGenerate SHA-256 and SHA-512 hashes from text locally with the browser Web Crypto API.