fork(2) download
  1. <?php
  2.  
  3. $string = "Hey, I have
  4. more than
  5. one line...";
  6.  
  7. echo (preg_match("~^[\r\n\w /:,.?@;-]+$~",$string))? "Good!" : "Bad!";
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Good!