DevOnlineTools

Interactive Regex Tester & Evaluator

Build, test, and debug regular expressions in real-time with dynamic match highlighting, regex flag toggles, capture group breakdowns, and cheat-sheet reference guides.

devonlinetools://developer/regex-tester
⌘ + EnterRun / Format
Shortcuts Active
//

Match Details (2)

Match #1: "support@devonlinetools.app"@834
Group 1: supportGroup 2: devonlinetools.app
Match #2: "alex.dev@company.io"@3857
Group 1: alex.devGroup 2: company.io

Code Snippets & Examples

Copy-paste ready code implementations for your project:

JavaScript
const pattern = /([a-z0-9._%+-]+)@([a-z0-9.-]+\.[a-z]{2,})/gi;
const str = "Contact support@devonlinetools.app for info.";
const matches = [...str.matchAll(pattern)];

matches.forEach(m => console.log('Found:', m[0], 'User:', m[1], 'Domain:', m[2]));
Python 3
import re

pattern = r'([a-z0-9._%+-]+)@([a-z0-9.-]+.[a-z]{2,})'
text = "Contact support@devonlinetools.app for info."

for match in re.finditer(pattern, text, re.IGNORECASE):
    print(f"Match: {match.group(0)}, User: {match.group(1)}")

Întrebări Frecvente

What do regex flags like g, i, m mean?

g = global match (find all matches), i = case insensitive, m = multiline mode (anchor ^ and $ match line boundaries).