fork(1) download
  1. <?php
  2.  
  3. $urlsString = "http://f...content-available-to-author-only...o.com/barhttps://b...content-available-to-author-only...r.com//foo.com/foo/bar";
  4. preg_match_all('~(?:https?:)?//.*?(?=$|(?:https?:)?//)~', $urlsString, $urls);
  5. print_r($urls[0]);
Success #stdin #stdout 0s 82944KB
stdin
Standard input is empty
stdout
Array
(
    [0] => http://f...content-available-to-author-only...o.com/bar
    [1] => https://b...content-available-to-author-only...r.com
    [2] => //foo.com/foo/bar
)