Regex Tester

Test regular expressions in real time with instant match highlighting and capture group display. This free regex tester supports all JavaScript regex features including lookaheads, lookbehinds, and named groups. Includes a comprehensive cheat sheet and shareable URL hash persistence so you can bookmark and share your regex tests.

//g
Flags:

How to Use This Tool

  1. Enter your regular expression pattern in the pattern field (without surrounding slashes).
  2. Select flags using the checkboxes: global (g), case insensitive (i), multiline (m), dotall (s).
  3. Type or paste your test string in the text area below. Matches will be highlighted in real time.
  4. View match details including index positions and capture groups in the results panel. Use the cheat sheet for quick reference on regex syntax.

Related Tools