fork(1) download
  1. <?php
  2.  
  3. $str = '/public_html/ftp/Products/1010_Air+Cooled+Condenser/productsheet_Rotary+Drum+Dryer+BR.pdf';
  4. $result = preg_replace('~(?!^)/[^/]+_~', '/', $str);
  5. echo $result;
Success #stdin #stdout 0.02s 24004KB
stdin
Standard input is empty
stdout
/public_html/ftp/Products/Air+Cooled+Condenser/Rotary+Drum+Dryer+BR.pdf