php正则测试demo、动态函数
摘要:
正则表达式 :"> 测试字符串 :"> ";if(preg_match_all($pattern, $subject, $matches)){var_dump($matches);}else{echo "preg_match_all({$pattern}, {$subject}) 未匹配到"."\n";}}各种正则模式: 'email' => "/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/", 'telA 阅读全文
posted @ 2013-07-24 11:48 andydaopeng 阅读(1017) 评论(0) 推荐(0) 编辑