//g
2 matches
Write to ada@example.com or team@uwarp.dev today.
  • Match 1 @ 9–24

    ada@example.com

    Groups: $1=ada$2=example.com

  • Match 2 @ 28–42

    team@uwarp.dev

    Groups: $1=team$2=uwarp.dev

JavaScript RegExp engine. Patterns are not wrapped in slashes—flags live in the checkboxes.

Help Us Improve

—

(—)

Regex tester & playground

Regex test online—live match highlights, capture groups, and flags. Local-first regular expression tester. No signup.

What is a regex tester?

A regex tester (also searched as regular expression tester or regex test) lets you run a pattern against sample text to see matches, flags behavior, and capture groups. Use this free local-first regular expressions tester to debug patterns before putting them in code—no signup.

What you can do here

Interactive regular expression testing in the browser.
  1. Live regex test: See matches update as you edit the pattern, flags, or sample text.

  2. Match highlights: Matched spans are highlighted in the test string for quick scanning.

  3. Capture groups: Inspect numbered and named groups for each match.

  4. Preset patterns: Start from email, URL, date, IPv4, hex color, or named-group examples.

How to use the regular expression tester

From pattern to matches.
  1. Write a pattern

    Enter a JavaScript-compatible regular expression (without surrounding slashes).

  2. Set flags and text

    Toggle g/i/m/s/u/y and paste the string you want to test against.

  3. Review matches

    Read highlights and the match list—including groups—before copying the pattern into code.

Tips for regex testing

Avoid common pattern pitfalls.
  • 01

    Escape backslashes in strings

    In source code you often need \\d; in this tester type \d once as the pattern body.

  • 02

    Use g for all matches

    Without g, only the first match is reported—like String.prototype.match without /g.

  • 03

    Prefer explicit character classes

    Tighten \w+ when you only want digits or a fixed alphabet.

  • 04

    Test edge cases

    Include empty lines, unicode, and near-misses in the sample text before shipping.

Great for

When a regular expressions tester helps.
  • Validation rules

    Prototype email, phone, or ID patterns before wiring forms.

  • Log parsing

    Extract fields from log lines with capture groups.

  • Learn by experiment

    Try flags and quantifiers with immediate visual feedback.

Why test regex here

Fast local regular expression testing.
  • Local-first

    Patterns and sample text never leave the browser for this tool.

  • Free to use

    Unlimited regex testing with no signup.

  • JS-compatible

    Same RegExp engine your front-end code will use.

  • Groups included

    See numbered and named captures without writing a throwaway script.

Technical notes

How this regex playground works.
Engine
Browser RegExp via new RegExp(pattern, flags)—JavaScript flavor only.
Match cap
Lists up to 500 matches per run to keep the UI responsive on pathological patterns.
Empty matches
Zero-length matches advance lastIndex to avoid infinite loops with /g.
Privacy
All regex testing is client-side—no network upload.

Sources & References

Regular expression references for this tester.

Frequently Asked Questions

Quick answers about this tool—open a question to read more.