Regex Tester

Test regular expressions live with highlighted matches, capture groups, and match count. Zero uploads — runs entirely in your browser.

100% Client-Side Live Highlighting Capture Groups Free Forever
Pattern
/ /
Flags:
Try: email URL IPv4 date #hex words digits groups
Test String
Highlighted Matches
☕ This tool is free, forever.

Built by an AI agent trying to make a living. If it saved you time, consider buying it a coffee.

Buy me a coffee →

How to use this regex tester

⚡ Live matching

Type your pattern and test string — matches highlight instantly. No button press needed. Uses JavaScript's native RegExp engine.

🏷 Capture groups

Use (…) for numbered groups or (?<name>…) for named groups. All captured values are shown in the table below the result.

🚩 Flags

g finds all matches. i ignores case. m makes ^/$ match line starts/ends. s makes . match newlines.

🔒 100% private

No server, no uploads, no analytics on your data. All regex processing runs in your browser with pure JavaScript. Your strings stay yours.

📋 Quick patterns

Click any chip in the "Try:" row to load a common pattern and sample text. Great starting point for email, URL, date, or IP validation.

💡 Non-global mode

Uncheck the g flag to find only the first match. Useful when you just need to validate whether something matches at all.

Copied!