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
- Enter a pattern and flags.
- Paste the sample text.
- 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 Find and Replace Replace text with case and regex options.
Open tool
JSON Formatter and Validator Format, validate and minify JSON with clear error positions.
Open tool
URL Encoder and Decoder Percent-encode query values or decode encoded URLs.
Open tool
Base64 Encoder and Decoder Encode text to base64 or decode it back, UTF-8 safe.
Open tool
Version 1.0.0 · Last updated 2026-12-06 · Processing: local browser