2016年1月22日

php常用的正则表达式

摘要: 1.邮箱的正则匹配:preg_match("/^\w+((-|\.)\w+)*@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/", $email);2.手机的正则匹配:preg_match("/^13[0-9]{1}[0-9]{8}$|15[018... 阅读全文

posted @ 2016-01-22 11:30 asif 阅读(149) 评论(0) 推荐(0) 编辑

导航