Regex Tester

About Regex Tester

Enter a JavaScript regular expression and flags, paste your text, and see every match with its capture groups. It uses the same engine as your browser, so results match what JavaScript code will do.

How to use Regex Tester

  1. Paste the text to search into the input.
  2. Type your pattern in the pattern field, without slashes.
  3. Set flags such as g, i or m.
  4. Read the list of matches and groups.

Questions and answers

Which regex flavour is this?

JavaScript. Syntax from other flavours, such as lookbehind in older engines or possessive quantifiers, may behave differently or be rejected.

What do the flags mean?

g finds all matches, i ignores case, m makes ^ and $ match per line, s lets . match newlines.

Is my text uploaded?

No.

Related tools