here I have a text:
<p class="pagination" align=center>nbsp; <a href="link.html">1</a>text in
between <a href="link.html>2</a>text....</p>
How do I get the 1 and 2 in an array?
what I am trying is:
preg_match_all("/<p\sclass=\"pagination\"\salign=center>.*?<a\shref=\".*?\">(\d)<\/a>.*?<\/p>/s", $content, $array, PREG_PATTERN_ORDER);
But this seems only to give 1 but not 2???
How should I do it?
Thanks,
Ted.