摘要: 要求匹配字符,开始与结束的值相等,中间只能为数字$str = 'a123a';preg_match('/^(\w)[\d]*(\1)$/',$str,$res);print_r($res);----------------------------------------------------(\1... 阅读全文
posted @ 2014-10-16 12:12 naci 阅读(935) 评论(0) 推荐(0) 编辑