Regex Tester

Test regular expressions with real-time match highlighting. JavaScript engine. Client-side only.

ADSENSE — 728×90
Pattern
gims
//gi
Test string
Matches
Match details
Run a pattern to see match groups
ADSENSE — 336×280

Regular Expression Reference

Regular expressions (regex) are patterns used to match character combinations in strings. They are powerful tools used in search, validation, parsing, and text transformation across virtually every programming language.

Common Patterns

Email: [\w.-]+@[\w.-]+\.\w+ — Matches standard email addresses. URL: https?://[\w.-]+(?:/[\w.-]*)* — Matches HTTP and HTTPS URLs. Phone: \+?\d{1,3}[-.\s]?\(?\d{1,4}\)?[-.\s]?\d{1,4}[-.\s]?\d{1,9} — International phone numbers.

Flags Explained

g (global): Find all matches, not just the first. i (case-insensitive): Ignore case differences. m (multiline): ^ and $ match line boundaries. s (dotAll): . matches newline characters too.

ADSENSE — 728×90