Online Regex Tester & Match Highlighter

Test Regular Expressions in real time with live highlighted matches, flags (g, i, m), capture groups, and common presets.

Presets:

Matches List

    Quick Regex Cheat Sheet

    TokenMeaningExample
    \d / \w / \sDigit / Word char / Whitespace\d{4} matches 2026
    + / * / ?1 or more / 0 or more / Optionalcolou?r matches color & colour
    ^ / $Start of string / End of string^Hello matches leading Hello
    [a-z] / (abc)Character class / Capture group(\d+)-(\d+) captures two numbers

    Frequently Asked Questions

    Which Regex engine does this tester use?

    It uses your browser's native ECMAScript (JavaScript) RegExp engine for instant, accurate matching.

    What do the g, i, and m flags mean?

    g finds all matches (global), i ignores uppercase/lowercase, and m makes ^ and $ match start/end of each line.

    Is my test text private?

    Yes, 100% client-side—nothing is sent to any server.

    Can I test email and URL patterns quickly?

    Yes, click any of the quick preset buttons (Email, URL, Date, Numbers) to load tested patterns immediately.

    Why did my pattern show an invalid regex error?

    Check for unclosed parentheses, brackets, or unescaped special characters like /, [, or ?.

    Does it show capture groups?

    Yes, every match and its capture groups are listed in the Matches List below the highlighter.

    Is this Regex tester free?

    Yes, completely free with zero ads clutter or signup.