🛠️ Dev Tools

Regex Templates

Regular expression templates - common regex patterns for email, phone, ID card, etc.

How to Use

Regular expressions are powerful tools for text processing. Here are common templates.

Common Regex Patterns:

  • Email: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$
  • Phone: ^1[3-9]d{9}$
  • ID Card: ^d{17}[dXx]$
  • URL: ^https?://[w-]+(.[w-]+)+[/#?]?.*$
  • IP Address: ^((25[0-5]|2[0-4]d|[01]?dd?).){3}(25[0-5]|2[0-4]d|[01]?dd?)$
  • Date: ^d{4}-d{2}-d{2}$

Click convert button to view full template list.

© 2026 Dev Tools Online | v1.1.0