preg_match_all("/<a +href = [\"']? ([\"' >])/i", $linkText, $link_matches); #be sure to include the spaces
$links = $link_matches[1]; #$links is an array of all the links.
which i use to load all links on a webpage into an array called $links. However this only finds links that are in <a href></a> tags. Is there a way I could modify this code so that i would find links that are just displayed (not in a tag)(non-clickable).