fork(3) download
  1. <?php
  2.  
  3. $teststring="αβγδεζηθΙκΛμ";
  4.  
  5. if (!preg_match("/^[A-ZA-zΑ-Ωα-ωίϊΐόάέύϋΰήώ0-9\- ]+$/", $teststring)) {
  6. echo "invalid char";
  7. }
  8. else {
  9. echo "success";
  10. }
  11.  
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
success