Regex tester

Test regular expressions against sample text with matches and capture groups highlighted.

Matches

    Test a JavaScript regular expression against sample text. Matches, capture groups, indexes and replacements update as you type, entirely in the browser.

    Native JavaScript rules

    Patterns use the same RegExp engine as modern browser code.

    See every match

    Global matching lists indexes and captured groups while guarding against zero-length loops.

    Frequently asked questions

    Why does a pattern work elsewhere but not here?

    Regular-expression syntax differs between languages. This tool uses JavaScript syntax.

    Is my test text uploaded?

    No. Testing occurs locally.

    Other free tools

    Want the form to collect the answers too?

    Hand-written HTML still needs somewhere to post to. formformform gives you the form, the hosting, the responses and the notifications — free while we are in early access.

    Start free