企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## **常见正则表达式** 1.手机号: ~~~ /^1[3456789]\d{9}$/ ~~~ 2.URL: ~~~ /((http|https):\/{2})?[^\s]*$/ ~~~ 3.邮箱: ~~~ /^[a-zA-Z0-9_]{1,}@[a-zA-Z0-9_]{1,}\.[a-zA-Z0-9_]{2,20}$/u ~~~ 4.15位或18位身份证号: ~~~ /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/ ~~~ 5.IP: ~~~ /^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$/ ~~~