PDA

Click to See Complete Forum and Search --> : Get All Url From String


prokhaled
May 12th, 2003, 06:16 AM
How can I get all url from string and put them in array ?

For Exam :
$s="click here http://domain.com or here http://anydo.net";

I want to put all url in array
$Url[0]="http://domain.com";
$Url[1]="http://anydo.net";

The Hobo
May 12th, 2003, 11:15 PM
Exam? No.

phpman
May 13th, 2003, 12:22 AM
prokhaled, don't you remember anything we have told you here!! I can name at least 5 threads where we did this with regular expressions. hmmm, that goes into an array.