Regex Tester

Test regular expressions against a string.

Loading tool…

How it works

  1. Enter a regex pattern and optional flags.
  2. Paste a test string.
  3. Review matches and capture groups.

Features

  • Pattern and flag inputs
  • Match list with indices
  • Runs entirely in your browser

FAQ

Which regex flavor is used?

JavaScript’s RegExp engine in your browser.

Is my text uploaded?

No. Matching runs locally.

Do I need the global flag?

Use g to find all matches. Without g, only the first match is returned.