DEVELOPER & DATA TOOLS

Regex Tester

Test a pattern against real text and inspect every matching value and index.

FreeNo sign-upProcessed in your browser

Test a regular expression

Enter a pattern and flags to list matches and their positions.

When do you test regex?

Use a regular expression to validate or find values with a repeatable pattern, such as email addresses, codes, or keywords.

Flags supported

Enter JavaScript flags such as g, i, and m.

Clear errors

Invalid patterns show an error instead of running.

REGEX TESTER GUIDE

Test a pattern against real examples, not only the expression

A regex is not ready just because the pattern looks correct. Check which realistic values pass or fail and whether capture groups split the data as intended.

Test a pattern against real examples, not only the expression

01 · Test text

Add realistic passing and failing examples.

02 · Pattern & flags

Set the regex and options such as i, g, and m.

03 · Review matches

Check pass, fail, and capture-group results.

DEVELOPER & DATA TOOL

Regular expression tester for patterns, flags, and sample text

Enter a pattern, choose flags, and test it against sample text to inspect matches before using it in code.

When to use it

Use it to check validation rules, find repeated text, or test a pattern before adding it to an application.

How to use it

  1. Open the tool and add the file, text, or value you want to work with.
  2. Use the available controls to review, edit, convert, or test the result.
  3. Check the result, then save, copy, or export it when needed.

Frequently asked questions

Which regex flavor does this use?

The tester uses the browser JavaScript regular expression engine. Syntax from other languages can behave differently.

Can I test flags?

Yes. Add the flags supported by the tool to see how they change matching behavior.

Related tools