dtdetu Posted December 23, 2008 Share Posted December 23, 2008 hello i want to get the <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941.html">Post your Screenshots here.</a><!-- start: forumdisplay_thread_multipage --> <span class="smalltext">( <!-- start: forumdisplay_thread_multipage_page --> <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941.html">1</a> <!-- end: forumdisplay_thread_multipage_page --><!-- start: forumdisplay_thread_multipage_page --> <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941-2.html">2</a> <!-- end: forumdisplay_thread_multipage_page --><!-- start: forumdisplay_thread_multipage_page --> <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941-3.html">3</a> <!-- end: forumdisplay_thread_multipage_page --><!-- start: forumdisplay_thread_multipage_page --> <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941-4.html">4</a> <!-- end: forumdisplay_thread_multipage_page --><!-- start: forumdisplay_thread_multipage_more --> ... <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941-16.html">last</a> <!-- end: forumdisplay_thread_multipage_more -->)</span> <!-- end: forumdisplay_thread_multipage --> from <td class="trow1"> <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941.html">Post your PCSX2 0.9.2 Screenshots here.</a><!-- start: forumdisplay_thread_multipage --> <span class="smalltext">( <!-- start: forumdisplay_thread_multipage_page --> <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941.html">1</a> <!-- end: forumdisplay_thread_multipage_page --><!-- start: forumdisplay_thread_multipage_page --> <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941-2.html">2</a> <!-- end: forumdisplay_thread_multipage_page --><!-- start: forumdisplay_thread_multipage_page --> <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941-3.html">3</a> <!-- end: forumdisplay_thread_multipage_page --><!-- start: forumdisplay_thread_multipage_page --> <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941-4.html">4</a> <!-- end: forumdisplay_thread_multipage_page --><!-- start: forumdisplay_thread_multipage_more --> ... <a href="post-your-pcsx2-0-9-2-screenshots-here-t-941-16.html">last</a> <!-- end: forumdisplay_thread_multipage_more -->)</span> <!-- end: forumdisplay_thread_multipage --></td> i am using preg_match_all("~<td class=\"trow1\"> (.*?)</td>~i", $searchresult, $topics); but it show no results can someone point me where do i make the mistake . thanks Link to comment https://forums.phpfreaks.com/topic/138156-preg_match_all-help/ Share on other sites More sharing options...
effigy Posted December 23, 2008 Share Posted December 23, 2008 You need the s modifier so that . will also match new lines: preg_match_all('~<td class="trow1">(.*?)</td>~is', $searchresult, $topics); Link to comment https://forums.phpfreaks.com/topic/138156-preg_match_all-help/#findComment-722364 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.