摘要: // 把COOKIE保存至cookie.txt curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt'); curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt'); // 初始化CURL $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); // ... 阅读全文
posted @ 2016-11-11 15:37 goldenstones 阅读(361) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/bravezhe/article/details/8301569 1.例子,查找不以baidu开头的字符串。baidu.comsina.com.cn 正则:^(?!baidu).*$ 匹配结果就是第2行,也就是第1行被排除了这里使用了零宽度断言(?!exp) 阅读全文
posted @ 2016-11-11 14:57 goldenstones 阅读(6658) 评论(0) 推荐(1) 编辑