note 43491 added to function.eregi

From: Date: Wed, 23 Jun 2004 05:58:53 +0000
Subject: note 43491 added to function.eregi
Groups: php.notes 
Request: Send a blank email to php-notes+get-71529@lists.php.net to get a copy of this message
for the comment from 'joseph dot ragsdale at xconduit dot com' The regex has one bug thought. It elminates <user>@jp.t.ne.jp addresses which are completly valid as it needs at least 2 chars in the domain part. This regex fixes it: ^[_a-z0-9-]+(\.[_a-z0-9-]+)* @[a-z0-9-]+(\.[a-z0-9-]{1,})*\.([a-z]{2,}){1}$ [but the regex in one line] ---- Manual Page -- http://www.php.net/manual/en/function.eregi.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43491 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43491&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43491&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71529) next »