On Tue, 31 Jul 2007, Alexandru Stanoi wrote: > Kore Nordmann wrote: > > > >> 1. Which regexp to use for email validation? > >> > >> a. > >> http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm/QuickForm/Rule/Email.php?revision=1.4&view=markup > >> b. http://iamcal.com/publish/articles/php/parsing_email/ > >> c. http://code.iamcal.com/php/rfc822/full_regexp.txt > >> d. http://ex-parrot.com/~pdw/Mail-RFC822-Address.html > >> e. http://www.tienhuis.nl/files/email_verify_source.php > >> f. This one (please specify): _________________ > >> g. Write our own one > > > > h) ... no opinion ;) > > > I skip the first one, no matter what you say. ;) ... I can not properly > > evaluate the regular expressions right now to give a definite answer. > > Would it be sensible to allow the developer to specify his own regular > expression for validation?
Why would we want to do that? If a user wants to use a different regexp he can just write his own validate function. > 3. b (1+1), a (1+1) - the punycode functions can be included in all the > components that need them, we don't necessarily need to put them in only > one place. So it could be in Mail AND Url (and in other places). Bad > practice, but easier to think about and it excludes dependencies. Yeah, but the punycode implementation is not trivial, and replicating non-trivial code is something I'd hate to see happening. Derick -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components