Regex Tester

Your files are never sent to a server · processed only in this browser

Result

  
    Replace Leave empty to skip

    Questions

    Which regex flavor is this?

    JavaScript (ECMAScript). Syntax JavaScript lacks, like possessive quantifiers (a++) or atomic groups, shows an error.

    It says the pattern didn't finish within a second.

    Nested repetition like (a+)+ blows up on slightly longer input. Rewrite it so the repeats don't overlap.

    How do I use groups in the replacement?

    Use $1, $2 for numbered groups, $<name> for named groups and $& for the whole match.

    More tools

    Esc