Regex Tester
Test regular expressions in real-time with syntax highlighting and matching results.
Regex Match
Full Match
Literal Match
Regex Config
Input Config
/ /
Templates
🔍
Common
Phone Mobile (Strict) Landline (CN) Email ID Card Chinese Name License Plate Passport Zip Code Date (YYYY-MM-DD) 24-Hour Time Coordinates
Network
URL Domain IPv4 IPv6 Port Subnet Mask MAC Address
Text
Chinese Pure Chinese Uppercase Letters Lowercase Letters Alphanumeric Alphanumeric Dash Chinese/Eng/Num Empty Lines Doubled Words HTML Tag
Numbers
Positive Integer Negative Integer Integer Number Decimal Two Decimals 1-3 Decimals Positive Float Float Currency (Comma)
Development
UUID SemVer Git Repo Strong Password Hex Color Base64
Business & Security
MD5 JWT Business License Unified Social Credit Identifier License Key Bank Card 文件路径
Text to Test
Match Results
Match Details
Replacement Result

What is Regex?

A regular expression is a sequence of characters that forms a search pattern.

🎯

Benefits

  • Fast processing
  • Pattern matching
  • Data validation
📋

Syntax

  • Metacharacters
  • Quantifiers
  • Boundaries
🚀

Scenarios

  • Validation
  • Search/Replace
  • Data extraction
💎

Features

  • Flexible
  • Compact
  • Cross-platform

How to Use

  • Enter regex
  • Set flags
  • Enter text
  • See results

Templates

Mobile (CN Strict)
^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$
Email
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$