fork(7) download
  1. <?php
  2.  
  3. $str = '<img title="Some nice title" border="0" hspace="0" alt="some useful hint" src="http://w...content-available-to-author-only...l.com/somefileprocessor.php/12345/somedir/somesubdir/someniceimage.jpg" width="629" height="464" />';
  4.  
  5. preg_match_all('/<img[^>]*?\s+src\s*=\s*"([^"]+)"[^>]*?>/i', $str, $matches);
  6.  
  7. foreach($matches[1] as $match){
  8. echo $match.PHP_EOL;
  9. }
  10.  
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
http://w...content-available-to-author-only...l.com/somefileprocessor.php/12345/somedir/somesubdir/someniceimage.jpg