↑ ↓ to move, Enter to open, Esc to close

Regex Tester

Write a regular expression and see matches highlighted live, with capture groups listed. JavaScript regex flavour.

//

Matches
Match details

    Type a pattern between the slashes and flags after (g = all matches, i = ignore case, m = multiline, s = dot matches newlines, u = Unicode). Matches are highlighted as you type and each capture group is listed.

    Cheat sheet

    • \d digit, \w word character, \s whitespace
    • + one or more, * zero or more, ? optional, {2,4} 2 to 4 times
    • ( ) capture group, (?: ) non-capturing, (?<name> ) named group
    • ^ start, $ end, \b word boundary

    Questions

    Which regex flavour is this?

    JavaScript (ECMAScript), which is close to PCRE for everyday patterns.

    Is my text uploaded?

    No, matching runs in your browser.