Regex Tester

Enter a pattern and some test text to see every match highlighted live, along with capture groups. Everything runs locally in your browser using JavaScript's own regex engine — nothing is sent to a server.

Pattern
Test String
Highlighted Matches
Match Details

    How to use the Regex Tester

    1. Type a pattern into the Pattern box (without the surrounding slashes).
    2. Check the flags you need — g to find all matches is on by default.
    3. Paste your test text below the pattern.
    4. Matches highlight live as you type, with full details and capture groups on the right.

    Frequently asked questions

    Is this Regex Tester free to use?

    Yes, it is completely free with no sign-up or usage limits.

    Is my data uploaded anywhere?

    No. Matching happens locally in your browser using JavaScript's own regular expression engine — nothing is sent to a server.

    Why do I only see one match?

    Without the g (global) flag, a regular expression only finds its first match, matching how it behaves in real code — check g to find every match in the text.

    What do the flags mean?

    g finds all matches instead of just the first. i makes matching case-insensitive. m makes ^ and $ match the start/end of each line instead of the whole string. s lets . also match newline characters.

    Does it show capture groups?

    Yes, any parenthesized groups in your pattern are listed under each match in the Match Details panel.

    Related tools