Page 1 of 1

preg_match_all from url - variable

Posted: Mon Jun 25, 2007 2:17 pm
by ddragas
hi all

how to insert into array every link that starts with "<a href" and ends with "</a>" taken from some url ;

complete url is in one $variable;

I know that I should build a pattern for preg_match_all, but don't know how?;


Thank you

regards ddragas

Posted: Mon Jun 25, 2007 2:18 pm
by Ambush Commander
Search Regex forums for "url"

Posted: Mon Jun 25, 2007 2:20 pm
by superdezign
What part can't you do? The regex?

Posted: Mon Jun 25, 2007 2:24 pm
by ddragas
yes regex