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.
Character classes, anchors, quantifiers, groups, lookarounds and flags of JavaScript regex on one page.
GuideReady-to-test patterns for emails, URLs, dates and other common inputs, with their limits.
GuideRun a pattern, list matches and read capture groups in JavaScript, Python and PHP.
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.
ToolFree JSON formatter: pretty print, validate, minify, sort keys and escape JSON in your browser. No upload, no signup, with syntax error messages.
ToolCount words, characters, lines and paragraphs online with a local browser-based text counter.
ToolGenerate SHA-256 and SHA-512 hashes from text locally with the browser Web Crypto API.