fork download
  1. <?php
  2.  
  3. $url ="http://e...content-available-to-author-only...e.com/listing/1/Testing-|-See-If-This-Works-";
  4.  
  5. $url = preg_replace('/(\||-$)/', '', $url );
  6.  
  7. echo $url;
Success #stdin #stdout 0.02s 24144KB
stdin
Standard input is empty
stdout
http://e...content-available-to-author-only...e.com/listing/1/Testing--See-If-This-Works