note 18551 deleted from function.eregi by didou
| From: | didou@php.net | Date: | Mon, 10 Jan 2005 03:26:46 +0000 |
| Subject: | note 18551 deleted from function.eregi by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-83030@lists.php.net to get a copy of this message | ||
Note Submitter: sasha at goldnet dot ca
----
Just small correction for the above code.
You might want to finish the pattern with +? rather then *?.
+ requires that previous pattern is repeated at least once.
* looks for ZERO or more matches which would let through bogus email like user@ without the domain
name.