Metoolzy Regex Tester is a tool to test regular expressions directly in the browser. You enter a pattern and a test string → the matches are highlighted in real time.
Regex is an important skill for any developer — from validating emails, searching through logs, to parsing complex data.
g (global), i (case-insensitive), m (multiline), s (dotAll)/pattern/ box (example: \d+)| Pattern | Purpose | Match example |
|---|---|---|
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b |
Validate email | user@example.com |
^(https?:\/\/)?(www\.)?[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} |
Match URL | https://metoolzy.com |
\b\d{3}[-.]?\d{3}[-.]?\d{4}\b |
US phone number | 123-456-7890 |
(\d{4})-(\d{2})-(\d{2}) |
Date YYYY-MM-DD | 2025-01-15 |
(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?) |
IPv4 address | 192.168.1.1 |
The JavaScript RegExp engine — the same engine used by Node.js and browsers.
Yes. JavaScript ES2018+ supports lookbehinds (?<=...) and (?<!...).
No. All processing is client-side, no data is sent to a server.
See more: Text Diff · Text Line Tools · Case Converter