fork download
  1. <?php
  2.  
  3. $text = "iso\u{3000}45001-2027.09.23.pdf";
  4.  
  5. print($text . "\n\n");
  6.  
  7. $clean_text = preg_replace('/[[:^print:]]/', '-', $text);
  8.  
  9. print($clean_text);
Success #stdin #stdout 0.04s 25860KB
stdin
Standard input is empty
stdout
iso 45001-2027.09.23.pdf

iso---45001-2027.09.23.pdf