preg_match_all('/(www.domain.com\/[a-z0-9-_\.&=:/])\"/i', $html, $matches);
and
preg_match_all('/(www.domain.com\/((.*))\"/i', $html, $matches);
totally kill it. Only with
preg_match_all('/(www.domain.com\/([^"]+))\"/i', $html, $matches);
or
preg_match_all('@((https?://)?([-\w]+\.[-\w\.]+)+\w(:\d+)?(/([-\w/_\.]*(\?\S+)?)?)*)@',$html,$matches);
can I get it to partly work.
Works with static normal URLs, but not something like
domain.com/cgi-bin/file.cgi?whatever=whatever&whatever=whatever%2B-more%2B-stuff%2B-is%2B-here%2B-ok