随笔分类 -  正则表达式

摘要:<?php $url = 'http://www.test.com/images/test.jpg'; if( @fopen( $url, 'r' ) ) { echo 'File Exits'; } else { echo 'File Do Not Exits'; } 阅读全文
posted @ 2019-06-13 15:44 za_szybko 阅读(654) 评论(0) 推荐(0)
摘要:preg_match($reg,$t_gold); //php正则函数 //js正则验证 if(!reg.test(document.getElementById('msg').value)){ alert("请输入正整数"); return false; } reg不是字符串是对象 weibo_content=w... 阅读全文
posted @ 2017-08-05 11:06 za_szybko 阅读(596) 评论(0) 推荐(0)