fork download
  1. <?php
  2.  
  3. $ads_description = 'foo bar baz
  4. foo bar baz
  5. foo bar baz';
  6.  
  7. $resultado = preg_match('#^[a-z0-9\-+, .\#*()\\/\n]+$#i', $ads_description);
  8.  
  9. var_dump($resultado);
  10.  
Success #stdin #stdout 0.02s 23696KB
stdin
Standard input is empty
stdout
int(1)