The variable $name is in my test case:Code:$regex = '#[0-9]{1,9}(?=">' . $name . '</a>)#'; preg_match($regex, $html, $matches); echo $matches[0];
And the $html contains this string:Code:house
My goal is to get the id you can see there, but it just won't work.Code:<a href="addonentry.php?fsid=54334">house</a>
lol I am used to C#, the regex there makes sense compared to this :P




Reply With Quote