【PHP】下らねぇ質問はここに書き込みやがれ 61
■ このスレッドは過去ログ倉庫に格納されています
0571568
2008/02/01(金) 20:54:45ID:WTHcD/an<A href="../menu.html" target="_self">
テスト2</A>
<A href="5.html" target="top">テスト3</A>
<A href="34.html" target="top">
テスト4</A>
_______________________________________________
test.txt
<?php
$str = implode (file ( "test.txt" ));
preg_match_all("/<a.*> ?(.*) ?.?<\/a>/i", $str, $matchtitle);
$i=0;
foreach($matchtitle[1] as $title[$i]){
print $title[$i]."<br>\n";
$i++;
}
?>
ソースはこうです
>>569さんの意見を参考に
preg_match_all("/<a.*> ?(.*) ?.?<\/a>/i", $str, $matchtitle);
preg_match_all("/<a.*> ?(.*) ?.?<\/a>/is", $str, $matchtitle);
に変えてみましたがだめでした
■ このスレッドは過去ログ倉庫に格納されています