Regex Tester - Live JavaScript Regex Debugger

Test JavaScript regex patterns locally with live highlights, flags, match counts, and capture groups. Debug sample text in your browser with no uploads.

Click for theater mode

Matches

2 matches
[email protected]\[email protected]\nnot-an-email

Capture Groups

#IndexMatchGroups
10[email protected]none
221[email protected]none

How to Use

  1. Type or choose a regular expression.
  2. Paste the sample text you want to test.
  3. Toggle flags such as g, i, or m.
  4. Review highlighted matches, match count, and capture groups.
  5. Copy matches or keep refining the pattern.

Note: The first version uses JavaScript RegExp, which differs from PCRE, Python, and other regex flavors.

Core Features

  • Live JavaScript Regex Testing: Type a regex pattern and sample text to see matches instantly.
  • Flag Toggles: Switch common g, i, m, s, and u flags quickly.
  • Capture Group Inspector: Review capture groups for each match to debug parsing logic.
  • Local Text Debugging: Logs, payloads, identifiers, and snippets stay in your browser.
  • Useful Presets: Start with common patterns for email, URL, UUID, whitespace, and log levels.

Related Tools

FIRE Calculator 2026 (Inflation Adjusted) | Retirement Gap Simulator

The 2026 FIRE Calculator (Inflation Adjusted). Simulate real purchasing power, analyze retirement savings gaps, and generate a visual wealth roadmap. One-click CSV export for your Excel or Notion finance dashboard. 100% Private, client-side calculation.

Position Size Calculator - Risk-Based Trade Sizing

Calculate trade position size from account balance, risk %, entry, and stop loss. Runs locally in your browser with no uploads, so you can compare risk scenarios before you trade.

PUBG Erangel Interactive Map 2026: Secret Basements & Loot Guide

Struggling to find Erangel secret rooms? Use our 2026 interactive map to locate all 15 red-door entries, key spawns, and T3 loot heatmaps. Privacy-first & free.

PUBG Taego Secret Room Map 2026: Key Spawn & Hidden Locations

Definitive Taego map for 2026. With Error Spaces removed, identify "Blue-Roof" houses for crate-tier loot and Self-AEDs. Privacy-first, forever free.

PUBG Vikendi Map 2026: Bear Caves, Lab Camps & Secret Loot

Vikendi 2026 tactical guide. Track deadly Bear Cave entrances, Lab Camp security keys, and Thermal Scope spawn zones. Avoid Polar Bears, grab loot.

PUBG Rondo Interactive Map 2026: Security Keys & Safes Guide

Master Rondo 2026 with our 8x8 tactical map. Locate every Security Door, Keycard spawn, and Safe for maximum gold. Privacy-first & free.

Universal Image Stamper Pro: SVG & WebP Support, Lossless Annotation 2026

Struggling with blurry markups? EasyTools offers a universal stamper supporting lossless SVG scaling and high-quality WebP export. Preserve transparency and export JSON data locally.

Image Compressor - Reduce File Size, No Uploads

Compress JPG, PNG, and WebP images locally in your browser. Compare before/after size, adjust quality, and download the result with no uploads.

Calculation Logic

The tool uses the browser's JavaScript RegExp engine locally:

  • The pattern is compiled into a JavaScript regular expression.
  • Flags change case sensitivity, multiline behavior, global matching, and more.
  • Capture groups expose specific parts inside each match.
  • Input length is capped to reduce the risk of slow patterns freezing the page.

FAQ

Is my sample text uploaded?

No. Matching runs locally in your browser, and sample text is not uploaded to a server.

Which regex flavor does this use?

The first version uses JavaScript RegExp. It does not emulate PCRE, Python, RE2, or other engines.

How do I see capture groups?

After a match is found, capture groups are listed per match so you can inspect each parenthesized submatch.

Why does my regex work elsewhere but not here?

Regex syntax varies by language and engine. This tester follows JavaScript regex behavior.

Can a regex freeze the page?

Very complex patterns can be expensive. The tool limits input length and reports errors or boundaries in the UI.