note 86200 deleted from function.ereg by felipe

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: krasnodarles at msn dot com 

----

TO pascalaschwandenPLEASENOSPAM at gmail dot com

If I am first use dot or dash  in URL like $var=".php.net"; or $var="-php.net"; the expression return true. 
This is not correct.

  case “URL”: 
   if (ereg("^[a-zA-Z0-9\-\.]+\.(com|org|net|mil|edu)$",$var)) { 
    $valid = true; 
   }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.