Yeah, ok thanks, that sounds very reasonable. I'll just do two seperate preg_match_all() funktions...
another question though, do you know why I get a multidimensional array which lists the entire <a href...>...</a>in the first array and then just the links in the second one?
this is my funktion:
preg_match_all("/<a(?:[>])href=\"([\"])\"(?:[>])>(?:[<])<\/a>/is", $stripped_file, $matches1);
because im really just searching for the entire string. dunno why i get the naked link as well...
Thanks monkover