Zum Hauptinhalt springen
PlusDeveloper Tools

Regex Tester

Regular expressions are the sharpest tool in the text toolbox - and the easiest to shoot yourself in the foot with. The Regex Tester shows you live what your pattern matches, explains the flags, ships a cheat-sheet reference and provides 30+ ready-made patterns for German formats like IBAN, tax number, postcode or case reference.

A live look inside

Live preview. It becomes interactive with your account.

What Regex Tester does

A regular expression is quick to jot down in your head and hard to oversee in practice - does it really match what it should and nothing else? The Regex Tester answers that instantly: you type your pattern at the top, your test text below, and every match is highlighted right in the text. No guessing, no deploy to try it, you just see it.

You can toggle the flags individually and get a short explanation for each: g for all matches instead of just the first, i for case-insensitive, m for multiline, s for DotAll (the dot also matches newlines), u for Unicode and d for the start and end indices of groups. That way you also understand why a pattern sometimes matches and sometimes not.

Captured groups are broken down so you see which part of your expression caught which slice of text - indispensable when you use brackets to pull out data. A built-in cheat sheet explains the key building blocks from character classes through quantifiers to anchors, so you do not constantly look things up in a separate reference.

The real time-saver for German everyday life is the collection of 30+ ready-made patterns. It covers exactly the formats you otherwise break your teeth on: German IBAN with optional spaces, BIC, tax number and tax ID, VAT ID, commercial register number, postcode, landline and mobile numbers, German date, licence plate, court case reference, social security number, legal paragraph references, SEPA reference, currency amounts in German format and more. Each pattern comes with a sample text so you immediately see how it matches.

Because a badly built expression can bring the browser to its knees, a guard against catastrophic backtracking is built in: if evaluation runs too long, the tool aborts cleanly and warns you instead of freezing the tab. So you can safely try even risky patterns.

Everything runs in your browser with the JavaScript regex engine that your Node or frontend code also uses - what matches here matches there. Nothing is uploaded, nothing is stored. No account, no signup, no data leaving your device. Ideal for building, understanding and learning regular expressions.

Features

Live match highlighting

Every match is highlighted right in the test text as soon as you type your pattern.

All flags explained

Toggle g, i, m, s, u and d individually - each with a short explanation of what it does.

Groups broken down

See which captured group catches which slice of text - indispensable when extracting data.

30+ German patterns

IBAN, tax number, VAT ID, postcode, case reference, licence plate and more - ready with an example.

Built-in cheat sheet

Character classes, quantifiers, anchors and co. at a glance, without hunting in a separate reference.

Runaway-regex guard

If evaluation runs too long, the tool aborts cleanly and warns instead of freezing the tab.

How it works

  1. 1

    Enter a pattern or pick a preset

    Type your regular expression or take one of the 30+ German patterns as a starting point.

  2. 2

    Set the flags

    Toggle g, i, m, s, u or d depending on whether you need all matches, case-insensitive or multiline.

  3. 3

    Paste the test text

    Paste the text you want to test against. The matches are highlighted immediately.

  4. 4

    Check matches and groups

    Look at the highlighted matches and the broken-down groups and refine the pattern until it fits.

Who needs this

→Developers building a pattern who want to see live what it matches.
→Anyone validating German formats like IBAN, tax number or case reference.
→People extracting data from text with groups.
→Learners understanding regular expressions via the cheat sheet and real examples.
→Teams checking an input validation before it goes to production.

Frequently asked questions

Which regex syntax does the tester use?

Your browser's JavaScript regex engine - the same one your Node or frontend code uses. What matches here matches identically in your JavaScript or TypeScript. For other languages like PCRE or Python some subtleties may differ.

Are there ready patterns for German formats?

Yes, over 30. Including German IBAN, BIC, tax number and tax ID, VAT ID, postcode, landline and mobile numbers, German date, licence plate, court case reference, social security number and legal paragraph references - each with a sample text.

What do the individual flags do?

g finds all matches instead of just the first, i ignores case, m makes ^ and $ match line start and end, s lets the dot also match newlines, u enables Unicode classes and d provides start and end indices of groups. The tester explains each flag directly.

Can a regex freeze the browser?

A badly built pattern can run very long through catastrophic backtracking. That is why a guard is built in that aborts evaluation cleanly and warns you instead of hanging the tab. So you can test risky patterns too.

How do I extract data with groups?

Brackets in your expression capture sub-matches. For each match the tester breaks down which group caught which slice of text, so you can see whether your extraction is correct.

Are my patterns or texts stored?

No. Everything runs in your browser. Neither your pattern nor your test text is sent to a server or stored.

JSON Formatter

Format, validate, and minify JSON with syntax highlighting and error detection. Free, runs in…

Text Cleaner

Remove whitespace, HTML tags, URLs, special characters. Fix German umlauts, typography, smart…

Text & Contract Diff Viewer

Compare two texts or contract versions word-by-word and instantly see what changed. Words are…

Code Workshop

Multi-tab editor with syntax highlighting, live preview, console, 20+ presets and snippet man…

SQL Formatter

Format and minify SQL queries with syntax highlighting.

Lorem Ipsum Generator

Generate Lorem Ipsum or German bureaucratic dummy text by paragraphs, sentences, or words. Co…

Ready to use Regex Tester?

No installation. No account needed to start. Open it right in your browser.

Open now