FREE TOOL

Regex tester

Type a pattern and some text. Matches are highlighted as you type.

Common:

Highlighted

Result

Matches

    WHAT IT DOES

    About this tool

    Test JavaScript regular expressions with live match highlighting, capture groups, named groups, flags and a replace preview. Common patterns are built in.

    Everything runs right in your browser: your text and files are never uploaded or stored.

    QUESTIONS

    Frequently asked questions

    Which regex flavor does this tool use?

    JavaScript (ECMAScript) regular expressions, the same engine that runs in browsers and Node.js. Most of the syntax matches PCRE, Python and Java, but lookbehind support and some flags differ.

    What do the flags mean?

    g finds every match, not just the first; i ignores case; m makes ^ and $ match at line breaks; s lets . match line breaks; u turns on full Unicode; y matches only at the current position.

    How do I use groups in the replacement?

    Use $1, $2 for numbered groups and $<name> for named groups such as (?<year>\d{4}). $& inserts the whole match.

    06 / LET'S GET ACQUAINTED

    TELL US
    WHAT YOUR
    BUSINESS NEEDS

    Describe the task. Together we'll
    work out the next step.

    Or message us on Telegram ↗
    What are you interested in?

    We'll reply to the contact you provide.