Skip to content
Dogu Expedition

Regex Tester

Tweak a pattern and flags and instantly see the matches and replacement result.

#Developer
Processed in your browser, never uploadedDEV-120

What is Regex Tester?

Enter a regular expression to highlight matches in your test string and list capture group values in a table. Add a replacement string to see the replaced result too. Examples of common patterns (email, phone numbers, and more) are included.

How to use

  1. 1

    Enter a regex and flags (g, i, m, …).

  2. 2

    Paste the text to test against.

  3. 3

    Check the matches, groups, and replacement result.

Use cases

Writing validation patterns

Build a regex that checks a phone number format.

Bulk replacements

Test a replacement that masks IP addresses in logs.

FAQ

Which regex flavor is used?+

Your browser's JavaScript regular expression engine.

Search tools

Find tools by name, description, or keyword