Changeset 357 for trunk/lib/Email.inc.php
- Timestamp:
- Jun 14, 2009 10:36:48 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Email.inc.php
r347 r357 69 69 { 70 70 // The regex used in validEmail(). Set here instead of in the default _params above so we can use the concatenation . dot. 71 // This matches a nemail address as complex as:72 // Bob John-Smith<bob&smith's/dep=sales!@smith-wick.ca.us> (Sales department)71 // This matches a (valid) email address as complex as: 72 // "Jane & Bob 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*|[^,@]*)(<)|(?:"[^"]*?"|[^,@]*)\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.