Просмотр поста

.
ramzes

preg_match_all('#href[^>]+id=([\d])#is', $text, $match);
print_r($match);
Так попробуй