Regex Tester

Type a pattern and some test text — matches are highlighted as you type and every capture group is listed.

Runs in your browser — nothing is uploaded
//g

Matches

#MatchGroups

How to use Regex Tester

  1. Enter the pattern (without slashes) and choose flags.
  2. Paste test text.
  3. Review highlighted matches and groups; optionally test a replacement.

Questions

Which regex flavour is this?

JavaScript (ECMAScript) regular expressions, as used in browsers and Node.js. Most syntax is shared with PCRE, Python and Java, but some features (like lookbehind support or possessive quantifiers) differ.