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.