Diese Seite ist noch nicht auf Deutsch verfügbar, daher zeigen wir die englische Version.

Regex Explainer — What Does This Regular Expression Do?

Paste any regular expression and see what every part means — in plain English, token by token: character classes, groups and named groups, quantifiers (greedy and lazy), anchors, alternation, lookahead and lookbehind, backreferences and flags.

Aktualisiert am
//
Examples:

Explanation

    Want to try it on text? Open it in the Regex Tester.

    Deine Daten verlassen nie deinen Computer. Die Verarbeitung erfolgt zu 100 % lokal im Browser.

    So nutzt du: Regex Explainer

    1. Paste a regular expression between the slashes (with or without the surrounding /…/) and add flags like gi.
    2. The explanation lists every part in order, with nested groups indented.
    3. Click an example to see common patterns explained.
    4. Test it on real text with Regex Tester.

    Reading a regular expression

    TokenMeaning
    .any character except a line break
    \d \w \sa digit, a word character (letter, digit, underscore), whitespace; uppercase means “not”
    [abc] [^abc] [a-z]one of these, none of these, a range
    * + ? {2,5}0 or more, 1 or more, optional, between 2 and 5 times; add ? to make it lazy
    ^ $ \bstart, end, word boundary
    ( ) (?: ) (?<name> )capturing, non-capturing and named groups
    (?= ) (?! ) (?<= ) (?<! )lookahead, negative lookahead, lookbehind, negative lookbehind
    a|ba or b

    The explainer follows JavaScript regex syntax, which is also very close to PCRE (PHP), Python, Java and .NET for everyday patterns.

    Related: Regex Tester, Find and Replace, AI prompts for developers.

    Auch gesucht als: explain regex, regular expression explained, what does this regex do, regex to english, regex breakdown, regex meaning, understand regex, regex parser.

    Passende Tools zu: Regex Explainer

    • Text Compare — Paste two versions of a text to see exactly what changed: added and removed lines and the changed words inside them, highlighted side by side or in one view.
    • Remove Duplicate Lines — Paste a list to remove duplicate lines instantly.
    • Groß-/Kleinschreibung-Konverter — Füge einen beliebigen Text ein und wandle ihn zwischen 11 Groß-/Kleinschreibungsvarianten um – von „Title Case“ für Überschriften bis hin zu „camelCase“ und „snake_case“ für Code.
    • JSON Path Finder — Paste a webhook payload or API response, click any value and copy its exact path — for JavaScript, JSONPath, jq, Python, PHP, n8n and Make.

    Häufige Fragen

    How do I understand a regular expression?
    Paste it here: each token is explained in plain English in order, with groups nested, so you can read the pattern step by step.
    What does (?: … ) mean in regex?
    A non-capturing group: it groups tokens (for example to apply a quantifier) without saving the match as a numbered group.
    What is the difference between greedy and lazy?
    Greedy quantifiers (*, +, {n,}) match as much as possible; adding ? (*?, +?) makes them lazy, matching as little as possible.
    Which regex flavor is used?
    JavaScript (ECMAScript), including named groups, lookbehind and the u, s, y and d flags. Most of it applies to PCRE, Python and Java too.
    Kann ich Regex Explainer als Web-App installieren und offline nutzen?
    Ja. Regex Explainer ist eine installierbare Web-App (PWA) – sie wird über Ihren Browser installiert und nicht aus einem App-Store heruntergeladen. Klicken Sie oben auf dieser Seite in Chrome oder Edge (Windows, macOS, Linux, ChromeOS) auf „App installieren“ oder verwenden Sie auf Android-Geräten „Teilen“ → „Zum Startbildschirm hinzufügen“ auf dem iPhone und iPad bzw. „Datei“ → „Zum Dock hinzufügen“ in Safari 17+ auf einem Mac. Die App öffnet sich dann in einem eigenen Fenster mit einem eigenen Symbol, und da sie vollständig in Ihrem Browser ausgeführt wird, funktioniert sie auch offline. Firefox auf dem Desktop kann keine Web-Apps installieren. So funktioniert die Installation.

    Ähnliche Tools