\d, \b, etc.).g i m s u y. Duplicates/invalid letters will error.$1, $2… and $& like JavaScript String.replace.- Hash Tool Windows 10 — SHA-256 / SHA-1 / SHA-384 / SHA-512 / MD5 (Text + File)
- Hash Tool Windows: SHA-256 / SHA-1 / SHA-384 / SHA-512 (Text + File)
- JSON Tools Plugin for Notepad++ 64-bit Download (x64) + Install Helper
- JSON Tools for Notepad++: Format, Minify, Validate, Sort Keys
- Lenovo UUID Tool (SMBIOS ↔ UUID Converter + Validator)
- UUID Tool for Minecraft — Offline UUID Generator + UUID Converter
- Free File Hash Tool (SHA-1 / SHA-256 / SHA-384 / SHA-512)
- Free Hash Tool (MD5, SHA-1, SHA-256, SHA-384, SHA-512)
How to use
Use this to quickly verify a JavaScript RegExp and inspect matches.
- Enter a pattern (without surrounding
/) and optional flags (e.g.,gim). - Paste your text in the input box.
- Click Find All to list matches + groups, Test (First) for the first match, or Replace Preview to see the replaced output.
FAQ
Do I include the /slashes/ around the regex?
No—enter only the pattern text (for example \d+), and type flags separately (for example gi).
Why does \d not work unless I type two backslashes?
In this tool you type the raw regex pattern, so a single backslash is correct (type \d). If you put a regex inside a JS string literal in code, you often need double escaping.
What does Find All do if I forget the g flag?
It automatically adds g for iteration, so you still get a full match list.
Can I see capture groups?
Yes—each match line shows a groups array containing $1, $2, etc.
Why am I getting “Invalid regular expression”?
The pattern or flags are not valid for JavaScript (common causes: unbalanced parentheses, bad character class, duplicate/invalid flags).
Does this send my text to a server?
No. All regex operations run locally in your browser and the tool makes no network requests.
How do I avoid infinite loops with patterns like .*? or ^?
The tool guards against zero-length matches by advancing the index by 1 when a match is empty.