この正規表現の何が問題になっていますか? でエスケープしても、「区切り文字は英数字またはバックスラッシュであってはなりません」というエラーが表示され続けます/i
。
$tokenregex = '/sid(.*)/i';
$bizresponse=curl_getinfo ($curlop1);
$bizresponse = print_r($bizch);
if (preg_match($tokenregex[1], $bizresponse))
{
do things
}
ビズレスポンスはこれ
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] => Array ( ) [redirect_url] => )