fork download
  1. <?php
  2.  
  3. $string = 'http://w...content-available-to-author-only...m.br/276255_Papel-de-Parede-Meme-Obama-Not-Bad_1280x1024.jpg';
  4. preg_match('/(https?:\/\/[^\s\'\"]*)/', $string, $match);
  5. $reply = '<img src="'.$match[0].'" alt="" width="" height="" />';
  6.  
  7. echo $reply;
  8.  
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
<img src="http://w...content-available-to-author-only...m.br/276255_Papel-de-Parede-Meme-Obama-Not-Bad_1280x1024.jpg" alt="" width="" height="" />