Regex Tester & Matcher

Developer

Test and debug regular expressions with real-time match highlighting and capture groups

Regular Expression
//
Flags
Test String
Matches0
No matches found
Common Patterns

Email

Matches email addresses

[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}

URL

Matches HTTP/HTTPS URLs

https?:\/\/[^\s]+

Phone (US)

Matches US phone numbers

\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}

Date (YYYY-MM-DD)

Matches dates in YYYY-MM-DD format

\d{4}-\d{2}-\d{2}

IP Address

Matches IPv4 addresses

\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b

Hex Color

Matches hex color codes

#[a-fA-F0-9]{6}|#[a-fA-F0-9]{3}

How to Use

  1. Enter your regular expression pattern and flags
  2. Enter your test string
  3. Inspect matches and capture groups highlighted in real time

Frequently Asked Questions

Which regex flags are supported?

Global (g), case-insensitive (i), multiline (m), dot-all (s), and unicode (u) flags are supported.

Free online Regex Tester. Test, debug, and optimize regular expressions with match explanations and sample presets.