Flags

Input Character Count: 0

Error:

Regex Tester

Iterate on regular expressions with real-time matches, explanations and sample data. Type a pattern, see what it matches instantly, and refine it without leaving your browser.

How to use

  1. Enter your regular expression and any flags.
  2. Paste the sample text you want to test against.
  3. See matches highlighted in real time as you type.
  4. Refine the pattern until it matches exactly what you need.

Frequently asked questions

Does it show matches as I type?
Yes. Matches update in real time so you can refine the pattern quickly.
Which regex flavor does it use?
It uses JavaScript regular expressions as run by your browser.
Can I test capturing groups?
Yes. Groups and flags are supported so you can build complex patterns.