preg_match_all from url - variable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

preg_match_all from url - variable

Post 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
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Search Regex forums for "url"
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

What part can't you do? The regex?
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

yes regex
Post Reply