Text

Regex Tester

Build and debug JavaScript regular expressions interactively. Matches and capture groups are highlighted as you type. Toggle flags such as g, i, m, s, u, y to see how they affect results.

//g

2 matches

Reach me at [email protected] or [email protected] — replies welcome.
Match details
  1. #1 [12-33] "[email protected]"
  2. #2 [37-52] "[email protected]"
runtime

Browser-local execution

Inputs stay inside the current tab unless you copy, download or explicitly export.

memory

Session handoff

Magic Paste can pass input to a target tool through sessionStorage, never through the URL.

control

User-owned state

Favorites, recent tools and workflow history are local browser data you can clear from the browser.

smart handoff graph

Suggested next moves

session handoff ready
sponsor

Fixed native slots for developer products. No third-party tracking, no popups, no layout shift.

Sponsor this tool
01

How to use

  1. 01Type your pattern (without slashes) into the regex field.
  2. 02Toggle the flags you need (g, i, m, s, u, y).
  3. 03Type or paste your test text below — matches are highlighted live.
02

FAQ

Which regex flavor does this use?
JavaScript ECMAScript 2024 regex, which is what runs in Node.js and modern browsers. PCRE-only features such as lookbehind variable-length matching may differ.
Why does my pattern not match anything?
Common reasons: missing the g flag for multiple matches, special characters not being escaped, or anchors (^ and $) used without the m flag in multi-line text.
03

Related tools