Developer tool / 100% free

Regex Tester

Test a regular expression against sample text, review the matches, and try a replacement before using it in code or a cleanup job. It is a safer place to tune a pattern than production data. It is free, needs no account, and adds no watermark to your result.

Built for: regex tester

Loading text tools…

When you need this

What people use it for.

Checking whether a cleanup pattern catches the right text
Testing capture groups before adding them to code
Previewing find-and-replace output
How it works

What happens to your file.

The pattern and flags are passed to the JavaScript regular expression engine, then matches and replacements are calculated against the sample text. Errors are shown before anything runs.

Where it stops: JavaScript regex syntax is used, which differs from PCRE, Python, and .NET in some details. Very broad patterns can be slow on large text.

What this tool includes

Everything you need, without a paywall.

Free Pro export naming included
Match list
Capture groups
Flags
Replacement preview
Questions

Common questions.

Which regex flavor is this?

JavaScript regular expressions.

Can I test replacement text?

Yes. Add replacement text and inspect the transformed result.

Why did my pattern freeze elsewhere?

Some patterns backtrack heavily on long input. Test with realistic text before using them in a batch job.

Related free tools

You might also need.