Mega Code Archive
Categories
/
Php
/
Strings
A non-capturing optional subpattern
'; preg_match_all('/rel="(?:prev|next)"(?: title="[^"]+?")? href= "([^"]*?)"/', $html, $linkMatches); print '$bothMatches is: '; var_dump($linkMatches); ?>