• 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: Please can any one sugest or send me Email validation code.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please can any one sugest or send me Email validation code.


  • Subject: Re: Please can any one sugest or send me Email validation code.
  • From: "Marc Wan" <email@hidden>
  • Date: Thu, 1 Feb 2007 16:16:19 +0800

this is good advice, and i will add the following:

- all of the rules for valid email addresses are extremely complicated.  i
believe there was one attempt made at a regular expression for this,
and it is rumoured to be nightmarish.

- however, do NOT take the easy route and simply assume an email address is:

[a-zA-Z0-9-\.]@{basically the same}

I can't tell how many websites refuse to let me use
"email@hidden".   Gmail, in particular, makes frequent and
excellent use of the "+" character.

m.


On 2/1/07, Marc Wan <email@hidden> wrote:
  this is good advice, and i will add the following:

  - actualy valid email addresses are extremely complicated.  i
believe there was one attempt made at a regular expression for this,
and it is rumoured to be nightmarish.

  - however, do NOT take the easy route and simply assume an email address is:

  [a-zA-Z0-9-\.]@{basically the same}

  I can't tell how many websites refuse to let me use
"email@hidden".   Gmail, in particular, makes frequent and
excellent use of the "+" character.

  m.




On 2/1/07, Keary Suska <email@hidden> wrote: > on 1/30/07 10:52 PM, email@hidden purportedly said: > > > I am new to Cocoa i am devloping one application in that i need to do > > validation for email. > > please can any one sugest me on this or send me the code. > > As mentioned, it depends on what "validation" means. If you mean to check > whether an entered value is a syntactically valid email, as long as you know > the correct syntax (read the relevant RFCs), you then need to determine > "when" validation occurs and by what method. Common approaches are via > NSFormatter subclasses and Key-Value-Coding validation. Next to determine > the actual code for checking validity. You can investigate the NSString and > NSScanner classes for methods to parse strings. > > I have found AppKiDo (http://homepage.mac.com/aglee/downloads) to be an > invaluable resource for quickly browsing classes. I highly recommend it. > > Best, > > Keary Suska > Esoteritech, Inc. > "Demystifying technology for your home or business" > > > _______________________________________________ > > Cocoa-dev mailing list (email@hidden) > > 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 >

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Please can any one sugest or send me Email validation code.
      • From: "Jim Thomason" <email@hidden>
  • Prev by Date: Re: Is the "id" type an immovable pointer? Or a movable handle
  • Next by Date: NSArrayController using NSUserDefaults bindings NSTableView into edit mode after an insert or add
  • Previous by thread: Re: Is the "id" type an immovable pointer? Or a movable handle
  • Next by thread: Re: Please can any one sugest or send me Email validation code.
  • Index(es):
    • Date
    • Thread