这个正则表达式有什么问题?尽管使用/i
.
$tokenregex = '/sid(.*)/i';
$bizresponse=curl_getinfo ($curlop1);
$bizresponse = print_r($bizch);
if (preg_match($tokenregex[1], $bizresponse))
{
do things
}
bizresponse是这个
ttp://anonymouse.org/cgi-bin/anon-www.cgi/http://ca.isohunt.com/member.php?origin=/forum/index.php&ssl=no&sid=915625588370db24a51d713871a3ec1a [content_type] => 文本/html; charset=utf-8 [http_code] => 200 [header_size] => 1417 [request_size] => 627 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 1 [total_time] => 2.666479 [namelookup_time ] => 3.8E-5 [connect_time] => 0.168507 [pretransfer_time] => 0.168547 [size_upload] => 0 [size_download] => 39526 [speed_download] => 14823 [speed_upload] => 0 [download_content_length] => 415 [ upload_content_length] => 0 [starttransfer_time] => 0.778169 [redirect_time] => 1.383665 [certinfo] => 数组 () [redirect_url] => )