Hey,
I've been trying to make this damn regex work for 3.5hours now, and so far - have nothing!
I need to preg_match a string for this, and get the number, in this case 47, out if it, but the foo variable wont be the same, so should be ignored:
<span class="cut"> ... </span><a href="blah.php?foo=bar&page=47">
Code PHP:preg_match('|\<span class\=\"do\"> ... <\/span><a href\=\"blah.php?foo=(.)&page=([^\"])"\>|', $contents, $matches);
Anyone know whats wrong?![]()
Thanks
fLUx







Bookmarks