Results 1 to 3 of 3

Thread: Get All Url From String

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    259

    Get All Url From String

    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";

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Exam? No.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width