note 74175 deleted from function.eregi by colder

From: Date: Wed, 28 Mar 2007 18:35:54 +0000
Subject: note 74175 deleted from function.eregi by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-124893@lists.php.net to get a copy of this message
Note Submitter: arturs dot vonda at tehnio dot lv Reason: bad code ---- I just could find a decent and simple URL validator so I made my own (or atleast tried). Hope this will help someone. It's not perfect but works in most cases. <? eregi ('^((f|ht)tps?\:\/\/)? ([a-z0-9]+\.?)+ ([a-z]{2,4})+ (/[a-z0-9/.%#&?=-]*)?$', $value)) ?> If anyone has any suggestions, I'm open for improvments.

« previous php.notes (#124893) next »