fork(1) download
  1. <?php
  2.  
  3. $line = "dsfsdf";
  4. if (!preg_match('/^[a-zA-Z0-9_-]{1,30}$/', $line))
  5. {
  6. echo 'No Match found';
  7. }
  8. else
  9. {
  10. echo 'Match found';
  11. }
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
Match found