Free tools, Developers

Regex tester

Type a pattern and some text. Matches light up as you type.

Common:

Highlighted

Result

Matches

    Questions

    Which regex flavor does this use?

    JavaScript (ECMAScript) regular expressions, the same engine as your browser and Node.js. Most syntax matches PCRE, Python and Java, but lookbehind support and some flags differ.

    What do the flags mean?

    g finds all matches instead of the first, i ignores case, m makes ^ and $ match at line breaks, s lets . match line breaks, u enables full Unicode, and 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 like (?<year>\d{4}). $& inserts the whole match.

    More developers tools

    All 55 free tools