• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Error validating email addresses in Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error validating email addresses in Core Data


  • Subject: Re: Error validating email addresses in Core Data
  • From: Dave Carrigan <email@hidden>
  • Date: Fri, 15 Apr 2011 09:19:17 -0700

RFC 5322's address grammar is too complicated to allow for validation with a regular expression, and you're going to end up rejecting perfectly legitimate email addresses if you try. Plus, even if you somehow came up with the perfect validation routine, it doesn't ensure that the address is actually deliverable, which may also be unacceptable, depending on what your goal is.

If you're trying to ensure that your input consists only of deliverable email addresses, your only practical choice is to send a message to the address with a unique token, then ask the user to provide that token to you.

On Apr 15, 2011, at 6:30 AM, Michael Crawford wrote:

> I'm trying to validate email addresses in Core Data but the regular expression I'm using doesn't seem to work even though it looks correct.  I'm using the following expression:

--
Dave Carrigan
email@hidden
Seattle, WA, USA

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Error validating email addresses in Core Data (From: Michael Crawford <email@hidden>)

  • Prev by Date: Re: dealing with alias files, finding URL to target file
  • Next by Date: Re: dealing with alias files, finding URL to target file
  • Previous by thread: Re: Error validating email addresses in Core Data
  • Next by thread: dealing with alias files, finding URL to target file
  • Index(es):
    • Date
    • Thread