Test regular expressions with real-time match highlighting. JavaScript engine. Client-side only.
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.
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.
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.