Return to Snippet

Revision: 8302
at September 11, 2008 23:21 by digdan


Initial Code
<?
function return_links($in_string) {
    preg_match_all("/<a(?:[^>]*)href=\"([^\"]*)\"(?:[^>]*)>(?:[^<]*)<\/a>/is", in_string, $matches);
    return $matches;
}
?>

Initial URL


Initial Description
Will find all links in a given string containing html

Initial Title
Find Links in HTML

Initial Tags


Initial Language
PHP