BoxStow

tool.regex-generator.title

tool.regex-generator.desc
English
tool.regex-generator.nametool.regex-generator.patterntool.regex-generator.exampletool.regex-generator.action
tool.regex-generator.chinaPhone^1[3-9]\d{9}$13812345678
tool.regex-generator.email^[^\s@]+@[^\s@]+\.[^\s@]+$[email protected]
URL^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$https://example.com
IPv4^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$192.168.1.1
IPv6^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$2001:db8::1
tool.regex-generator.date^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$2026-03-24
tool.regex-generator.date^(0[1-9]|[12]\d|3[01])\/(0[1-9]|1[0-2])\/\d{4}$24/03/2026
tool.regex-generator.time^([01]\d|2[0-3]):([0-5]\d)$14:30
tool.regex-generator.time^([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$14:30:00
tool.regex-generator.chinaID^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$11010119900101123X
tool.regex-generator.passport^[a-zA-Z0-9]{6,9}$G12345678
tool.regex-generator.zipCode^\d{6}$100000
tool.regex-generator.plateNumber^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z][A-Z0-9]{4,5}[A-Z0-9挂学警港澳]$京A12345
MAC^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$00:1B:44:11:3A:B7
Hex^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$#3B82F6
📋
💡 You might also use:
Use Now
Popular Tools
Similar Tools

Generate regular expressions from plain English descriptions or example strings. Our AI-powered Regex Generator understands what pattern you need and produces ready-to-use regex code.

Instead of memorizing complex regex syntax, just describe what you want to match — like "an email address" or "a phone number with country code" — and get an accurate pattern instantly.

Frequently Asked Questions

How does the regex generator work?

It analyzes your description or example input to construct a regular expression that matches the described pattern, using common regex building blocks.