Regex Tester

Write and test regular expressions

Regex Validation

Match results:

About This Tool

The Regex Tester is a powerful online tool for testing and validating regular expressions, with a library of common patterns for email, phone numbers, URLs and more.

For a step-by-step deep dive, read our guide: How to Test a Regular Expression Online.

Features

Regex Testing

Test regexes in real time, highlight matches, and get match statistics.

Common Patterns

Quickly find common regex patterns for email, phone numbers, URLs and more.

Regex Validation

Validate regex syntax and surface errors.

Local Processing

Everything runs locally — your data is never uploaded.

How to use the Regex Tester

Regex Tester FAQ

What is a regular expression?

A regular expression (regex) is a pattern that describes a set of strings, used to search, match, and extract text in code and data.

What do the flags do?

Flags change matching behavior — for example, case-insensitive matching or a global search that finds every match instead of just the first.

Why isn't my regex matching?

Common causes are unescaped special characters, missing anchors, or greedy versus lazy quantifiers. Try escaping reserved characters like . * + ? | and test small pieces at a time.

Is my test data sent to a server?

No. The regex engine runs in your browser, so the text you test against never leaves your device.