Mr. Latte PortalTools

Tools

Regex tester

Highlight where a regular expression matches and show capture groupsNo sign-up. What you type never leaves this browser

Regex tester

Result

Enter values to see the result.

FAQ

How do I match an email-like pattern?

A simple start is [\w.+-]+@[\w-]+\.[\w.]+, though full email validation is more complex.

Is the syntax the same as PCRE or Python?

It is JavaScript syntax, which differs slightly. Lookbehind (?<=...) and named groups (?<name>...) work.

About this tool

This tool searches text with a JavaScript RegExp, highlights matches and lists each match's position (from 0), matched text and capture group values.

  1. Flags: g all matches, i ignore case, m multiline, s dot matches newlines, u Unicode, y sticky.
  2. Without g, only the first match is found.
  3. Up to 1,000 matches, with 200 rows in the table.

What you enter is worked out only in this browser and never sent to a server. Nothing you type is stored; only the lists of recently used and favorite tools stay in this browser.