fork(1) download
  1. <?php
  2.  
  3. // your code goes here
  4.  
  5. $in = 'http://w...content-available-to-author-only...e.dev/2014/05/my-file-name-here-710x557.png';
  6. $newsrc = preg_replace('#(\-\d+x\d+)(\.\w+$)#', '$2', $in);
  7.  
  8. echo ':' . $newsrc;
  9.  
  10.  
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
:http://w...content-available-to-author-only...e.dev/2014/05/my-file-name-here.png