FlinkTools

Regex tester

Test a regular expression against text, see matches and groups, and read the pattern in words.

Processed on your device, never uploaded

Pattern

Flags

Library

Common patterns
NamePattern
Email address [\w.+-]+@[\w-]+\.[\w.]+
URL https?://[^\s]+
IPv4 address \b(?:\d{1,3}\.){3}\d{1,3}\b
Date (YYYY-MM-DD) \d{4}-\d{2}-\d{2}
German postcode \b\d{5}\b
IBAN (DE) DE\d{2}(?: ?\d{4}){4} ?\d{2}

What it does

The regex tester runs a regular expression against your text and highlights every match and capture group as you type. It explains the pattern piece by piece and says why a broken pattern won’t compile. It uses JavaScript regular expressions, in your browser.

How to use it

  1. 1Type a pattern, or start from a common one, and set flags such as g or i.
  2. 2Paste the text to test against.
  3. 3Check the matches and groups, then copy the pattern as JavaScript.

Questions

Which regex flavour is it?

JavaScript, as in browsers and Node.js. Simple patterns work the same in Python, PHP and Java.

Why is there no match?

Check the flags: i ignores case, m makes ^ and $ match on every line. Check for stray spaces in the pattern too.

Is my text sent anywhere?

No. The matching runs on your device.

AD320 × 100