正则表达式验证工具
感觉网上的正则表达式工具不太好用,就自己写了一个,是PHP的,不同语言的正则表达式可能不太一样,所以其他语言的正则表达式验证还要注意。
工具地址:http://www.fddcn.cn/adds/regular/index.html
- //regular.php
- <?php
- if($_GET[‘zz’])
- {
- $str=$_GET[‘nr’];
- $pre=$_GET[‘zz’];
- preg_match(“/$pre/”,$str,$matches);
- //var_dump($matches);
- echo $_GET[‘jsoncallback’].“(“.json_encode($matches).“)”;
- }
- else{
- echo‘ ‘;
- }
- ?>
李胜的脚步
2015年4月5日 17:09
zz 不专业 应该叫re
奋斗的承诺
2015年8月12日 09:42
懒得写了
奋斗的承诺
2015年8月12日 15:14
恩