正規表現テスター - 無料のオンライン正規表現テストツール

Regular Expression

/
/
g
Status: Valid
Matches: 0

Test String

Match Results

Common Patterns

Email
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
Matches email addresses
Phone
(\+\d{1,3}[-.\s]?)?\(?\d{3}\)?[-.\s]?\d{3}[-.\s]?\d{4}
Matches phone numbers
URL
https?://...
Matches HTTP/HTTPS URLs
IPv4
^(?:(?:25[0-5]|...)\.){3}....$
Matches IPv4 addresses
Date
\d{4}-\d{2}-\d{2}|...
Matches common date formats
Credit Card
\d{4}[-\s]?\d{4}[-\s]?\d{4}[-\s]?\d{4}
Matches credit card numbers
Hex Color
#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})
Matches hex color codes
HTML Tag
<\/?[a-z][\s\S]*>
Matches HTML tags

Quick Reference

Characters

. Any character
\d Digit (0-9)
\w Word character
\s Whitespace

Quantifiers

* Zero or more
+ One or more
? Zero or one
{n,m} Between n and m

Anchors

^ Start of string
$ End of string
\b Word boundary

Groups

() Capturing group
(?:) Non-capturing
[abc] Character set
[^abc] Negated set

How to Use

  1. Enter your regular expression in the regex input field
  2. Select appropriate flags (g, i, m, s) as needed
  3. Enter test string to match against your regex
  4. View highlighted matches and detailed results below
  5. Use common patterns for quick testing or reference guide for syntax help