Regex Tester - free online tool

Test a JavaScript regular expression against your text and see every match.

Log in to save this tool to your dashboard.

Privacy: this tool runs in your browser. Your input is not sent to our server.

How to use Regex Tester

Enter a pattern without slashes, set flags and paste your text.

Example

Pattern \d+ on "a1 b22" finds 1 and 22.

Frequently asked questions

Which regex flavour is this?

JavaScript. Other languages may differ slightly.

Why do I always see all matches?

The g flag is added automatically so every match is listed.

Related tools