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

    Collect your next set of responses

    Create a form for your next survey, registration or enquiry, and export the responses when you need them.

    Start free

    Ask AI about formformform

    See what it does, who it’s for, and whether it fits your needs.

    Opens with product context and a link to this page.

    View or copy the prompt