Regex Tester

Write a regular expression and see every match and capture group highlighted as you type.

🔒 Runs entirely on your device. Nothing you paste or pick is uploaded.

//

    Regex cheat sheet

    • . any character · \d digit · \w word character · \s whitespace
    • * 0 or more · + 1 or more · ? optional · {2,5} between 2 and 5
    • ^ start · $ end · \b word boundary
    • (…) capture group · (?:…) non-capturing · (?<name>…) named group
    • [abc] any of a, b, c · [^abc] anything except them

    Which regex flavour is this?

    This tester uses your browser's JavaScript regex engine — the same one used by Node.js, Deno and every browser. Most patterns also work in Python, Java and PCRE, but lookbehind and named-group syntax can differ slightly.

    More free tools