Free tools

Regex Tester

Free JavaScript regex tester. Try a pattern against sample text and see matches and groups instantly. Your test string stays in this browser tab.

Tool names, instructions and generated content may be provided in English.

2 matches

  • Discord @ 19
  • Brighton @ 38

About this tool

Check Discord command parsers, slug rules or log scrapers without leaving GraphicByte. The tester uses the same RegExp engine as your browser.

Invalid flags or patterns show the engine error. Matches list the text, index and capture groups.

How to use it

  1. Enter the pattern and flags (for example g or gi).
  2. Paste the text you want to test.
  3. Read matches below. Fix the pattern if an error appears.

FAQs

Is this PCRE or JavaScript regex?

JavaScript. Syntax matches what you would use in a browser or Node app, not PHP PCRE.

Why are there no matches?

The pattern may lack a global flag, or the sample text does not contain a match. Invalid regex also yields an error instead of matches.

Is my test data sent to GraphicByte?

No. Matching runs entirely in this page.

More free tools