Mam dwa wzorce:
1.<codebox> <table\s+border=0><tr><td\s+vAlign="top"\s+height=350></codebox>
strona www
2.<codebox> <a\s+style="text-decoration:underline;"\s+href="java script:history\.back</codebox>
Jak najprościej zrobić, żeby zapisać tę część strony www do zmiennej?
Próbowałem tak:
<codebox>
$match_result2 = preg_match_all('/<table\s+border=0><tr><td\s+vAlign="top"\s+height=350>([^<p>]+)<a\s+style="text-decoration:underline;"\s+href="java script:history\.back/i',$page_contents2, $match_array2, PREG_SET_ORDER);
</codebox>
A może bez wyrażeń regularnych?