$html = '';preg_match_all('/rel="(?:prev|next)"(?: title="[^"]+?")? href="([^"]*?)"/', $html, $linkMatches);print '$bothMatches is: '; var_dump($linkMatches);?>