Test and debug your regular expressions in three simple steps
Type a regular expression in the top input field, delimited by forward slashes. Toggle the g, i, and m flags as needed.
Add your sample text in the main text area. Matches are highlighted instantly with yellow markers as you type.
Check the match list on the right for details — index, content, and position. Use the cheat sheet to grab common patterns.
Common questions about our regex testing tool
Yes, it is 100% free with no sign-up, no usage limits, and no ads. All regex testing happens instantly in your browser.
No. All regex processing runs locally in your browser using JavaScript's native RegExp engine. Your text and patterns never leave your device.
The tool supports three standard JavaScript RegExp flags: g (global — find all matches), i (case-insensitive), and m (multiline — ^ and $ match line boundaries). Click toggle buttons to enable or disable each flag.
Yes. The results panel shows every match with its sequential index number, the full matched content, and the character position where the match begins. The total match count is displayed above the text area.
Yes. The tool includes a built-in reference panel with 15 commonly used regex patterns — email, phone, URL, IP address, date formats, Chinese characters, and more. Click any pattern to instantly insert it into the regex input field.