📝 Regex Memo
Common regular expression patterns reference for quick lookup and testingBrowse patterns by category, search for specific patterns, and test them with your own text. Perfect for developers and anyone working with text processing.
search:
regexPatterns
Pattern | Description | Example | Category | Actions |
---|---|---|---|---|
\b\w+@\w+\.\w+\b | 邮箱地址 | [email protected] | 常用模式 | |
\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b | IPv4地址 | 192.168.1.1 | 常用模式 | |
\b\d{4}-\d{2}-\d{2}\b | 日期格式 (YYYY-MM-DD) | 2024-01-15 | 常用模式 | |
\b\d{2}:\d{2}:\d{2}\b | 时间格式 (HH:MM:SS) | 14:30:25 | 常用模式 | |
\b\d+\b | 整数 | 123, 456, 789 | 数字模式 | |
\b\d+\.\d+\b | 小数 | 3.14, 2.718 | 数字模式 | |
\b\d{11}\b | 11位数字 | 13800138000 | 数字模式 | |
\b\d{4}\s\d{4}\s\d{4}\s\d{4}\b | 信用卡号 | 1234 5678 9012 3456 | 数字模式 | |
\b[a-zA-Z]+\b | 英文字母 | Hello, World | 字符串模式 | |
\b[a-z]+\b | 小写字母 | hello world | 字符串模式 |
regexTester
Pattern:
Test Text:
These patterns are examples and may need adjustment for your specific use case. Always test thoroughly before using in production.