EN
PortuguêsEnglishEspañol
All tools
Developer tools 100% free

Regex tester

Test regular expressions live and see the highlighted matches, the capture groups and the result of the replacement.

How to use

Thank you so much for helping!

Every donation helps pay for the servers and keeps the tools free for everyone. Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

Back to Encoding, hashes and networks

Test your regular expression.

//

Matches

Available in: PortuguêsEspañolEnglish

Advertisement

Regex tester: what it is for

The regular expression tester highlights each match in the text as you type, lists the capture groups with the position of each one and shows the result of the replacement with $1, $2.

It has ready-made patterns for email, US phone numbers, ZIP codes, URLs and dates. It uses JavaScript regex, which runs in your browser.

How to use

  1. Type the expression and the flags.
  2. Paste the test text.
  3. Check the matches, the groups and the replacement.

When to use it

  • Validating form fields.
  • Extracting data from text and logs.
  • Learning and debugging regex.

Frequently asked questions

Which regex flavor is used?

JavaScript's (ECMAScript), the same as in the browser and Node.js. In most cases it is very similar to Python, PHP and Java.

What do the flags mean?

g finds all occurrences, i ignores case, m makes ^ and $ apply to each line, s makes the dot match line breaks and u turns on Unicode mode.

Is it really free?

Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.

Similar tools

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.