ROXIE TOOLS Everyday tools, made simple

Regex Tester

Try a JavaScript regular expression against sample text, see every match and capture group, and read a plain-English explanation of the common tokens used.

  • Runs in your browser
  • Accepts: regex, text
  • Produces: matches
  • Free · No sign-up

Loading the tool…

How to use regex tester

  1. Enter a pattern and flags.
  2. Paste the sample text.
  3. Review matches and capture groups.

Practical examples

Matching an email-shaped string

[\w.+-]+@[\w-]+\.[\w.]+ with the global flag highlights every candidate in the text.

Limitations to know about

  • JavaScript regular-expression syntax is used, which differs from Python or PCRE in a few constructs.
  • Catastrophic backtracking can freeze the tab on pathological patterns; keep test text small.

Privacy

This tool processes everything inside your browser. Nothing you paste or upload is transmitted to Roxie Tools or to any third party, and no copy of your input is stored. Closing the tab clears it.

See the privacy policy for how this site handles data.

Related tools

All developer tools

Version 1.0.0 · Last updated 2026-12-06 · Processing: local browser