Skip to main content
Y YunoDB Tools 中文 AI tools directory ↗

Regex Tester (JavaScript)

Test a JavaScript regular expression against your own text and see the results as you type. Matches are highlighted in the test string, the match count is shown, and every match is listed with its index and capture groups. Toggle the g, i, m, s and u flags to change how the pattern behaves. The tool uses your browser's own RegExp engine, so results match JavaScript code, and your text is never uploaded.

Share Twitter Reddit
/ /

Highlighted matches
Matches and groups

How to use the Regex Tester

  1. Enter a pattern in the Regular expression box, without the surrounding slashes.
  2. Tick the flags you need: g (global), i (ignore case), m (multiline), s (dotAll) or u (Unicode).
  3. Paste the text to search into the Test string box.
  4. Review the highlighted matches, then the Matches and groups list for each match's index and captured groups.

Frequently asked questions

Your browser's JavaScript engine, exactly like new RegExp() in JS. Patterns that rely on PCRE- or Python-only features may behave differently.
Check whether you need the g flag to find all matches, whether special characters are escaped (\. \+ \? for a literal dot, plus or question mark), and whether you need the i flag to ignore case.
Yes. Each match lists its capture groups in order. Named groups appear in their positional slot.
No. Matching runs entirely in your browser.

Looking for more AI and software tools? Browse the yunodb.com tools directory ↗.