Regex Tester

Regex Tester is a browser-based tool for validating Regex syntax. Paste your input, review the result, and copy or download it. Supported processing stays in your browser; this page shows the current input-size limit before you begin.

Regular expression
Test string
Matches

Run the pattern to see matching data.

Click Validate to test your pattern.
100% browser-side processing — your data is never uploaded to any server. · Per-tool input limit: 1 MB
100% browser-based No upload to server Free to use

Frequently Asked Questions About Regex Tester

Which regex engine is used?

Your browser's JavaScript engine. Lookbehind and some Unicode escapes behave differently in PHP, .NET or Python.

Why does my pattern match too much?

Quantifiers are greedy by default; make them lazy with ? or anchor the pattern. Flags g, i and m on this page change what a match means.

Which regex engine does this tool use?

It uses your browser's JavaScript engine. Features like lookbehind assertions and certain Unicode escapes behave differently in JavaScript than in PHP, .NET, or Python. Always test patterns in the specific engine where they will be deployed.

Why does my pattern match more than expected?

Quantifiers are greedy by default. To fix this, make them lazy by appending ? (e.g., a* becomes a*?) or anchor the pattern more strictly. Also verify that the g, i, and m flags are set correctly, as they alter how matches are defined.

Is my source code uploaded to a server?

No. All processing happens locally in your browser. Your input data and regular expressions are not transmitted to external servers, making this tool suitable for sensitive or proprietary code.

Can I use file upload instead of pasting?

Yes. You can load local files via the file button. The file is read directly in your browser and is not uploaded to any remote service.

Embed tool Add this tool to your website Get embed code

Add this developer tool to a related page with a visible TidyCode source link.