Regex Tester — Test, Match and Debug Regular Expressions

Test and debug regular expressions with live match highlighting.

Tool Panel

Loading tool...
About Regex Tester

Highlights matches and capture groups live, with the position of each hit. The pattern and the text stay in your browser.

  • 1

    Four flags — g, i, m and s — toggle independently and recompute immediately: global, case-insensitive, multiline, and dot-matches-newline.

  • 2

    Matches are highlighted inside the source text and then listed one by one with an index, the matched text and its starting position, so locating them needs no manual counting.

  • 3

    Five quick patterns fill the field in one click: an 11-digit phone number, an email, a URL, a mainland-China mobile number and a YYYY-MM-DD date.

  • 4

    An invalid pattern shows the engine error message instead of swallowing it or returning an empty result.

  • 5

    Pattern and text stay in the browser, which makes it safe to paste internal log excerpts; with g switched off only the first match is returned.

Related tools

View all
Cron Generator
Programming

Cron Generator

Build crontab schedules visually instead of recalling the field syntax.

Programming
Gitignore Generator
Programming

Gitignore Generator

Produce a .gitignore suited to your stack instead of copying one from memory.

Programming
JWT Generator
Programming

JWT Generator

Mint signed JSON Web Tokens for testing authentication flows.

Programming
UUID Generator
Programming

UUID Generator

Generate random v4 UUIDs in bulk for fixtures and test data.

Programming
NanoID Generator
Programming

NanoID Generator

Generate compact, URL-safe random identifiers.

Programming
ULID Generator
Programming

ULID Generator

Generate sortable unique IDs that preserve creation order.

Programming