fork download
  1. <?php
  2.  
  3. $pattern = <<<'EOT'
  4. /[~!@#$%^&*()+`'";:<>\/\\|]/
  5. EOT;
  6.  
  7. $text = 'ab\c';
  8. echo "$text\n";
  9. if (!(preg_match($pattern, $text))){
  10. echo "Great! Special symbols was not found!";
  11. }
Success #stdin #stdout 0.02s 82624KB
stdin
Standard input is empty
stdout
ab\c