fork download
  1. <?php
  2.  
  3. $data = "is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, http://w...content-available-to-author-only...e.com/watch?v=mm78xlsADgc when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but";
  4.  
  5. preg_match('/(http:.*?)\s+/si', $data, $url);
  6.  
  7. echo $url[0];
  8.  
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
http://w...content-available-to-author-only...e.com/watch?v=mm78xlsADgc