Changeset 309 for trunk/lib/Email.inc.php
- Timestamp:
- Jan 31, 2008 9:26:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Email.inc.php
r293 r309 70 70 // The regex used in validEmail(). Set here instead of in the default _params above so we can use the concatination . dot. 71 71 // This matches an email address as complex as: 72 // Bob Smith <bob&smith's/dep=sales!@smith-wick.ca.us> (Sales department)72 // Bob John-Smith <bob&smith's/dep=sales!@smith-wick.ca.us> (Sales department) 73 73 // ...and something as simple as: 74 74 // x@x.com 75 $this->setParam(array('regex' => '/^(?:[^,@]* \s+|[^,@]*(<)|)' // Display name76 . '((?:[^.<>\s@ \",\[\]]+[^<>\s@\",\[\]])*[^.<>\s@\",\[\]]+)' // Local-part75 $this->setParam(array('regex' => '/^(?:[^,@]*(<)|[^,@]*\s+|)' // Display name 76 . '((?:[^.<>\s@",\[\]]+[^<>\s@",\[\]])*[^.<>\s@",\[\]]+)' // Local-part 77 77 . '@' // @ 78 78 . '((?:(\[)|[A-Z0-9]?)' // Domain, first char
Note: See TracChangeset
for help on using the changeset viewer.