I have:
$pattern = "<a href=\"javascript:tmp=openwin\('/cgi-bin/english/whois.cgi?domain=(.*)'\)\">(.*)</a> is <b>registered</b>!<br>";
$replace = "<a href=\"blah.php?domain=\\1\">\\1</a> is <b>registered</b>!<br>";
$r = eregi_replace($pattern, $replace, $array[1]);
Array[1] contains this:
The domain <a href="javascript:tmp=openwin('/cgi-bin/english/whois.cgi?domain=commas.com')">commas.com</a> is <b>registered</b>!<br>
Now why the hell isnt that working? Any help appreciated.