RFC 822 has been obsolted by 2822...
But a more relevant issue is that not all email addresses in the "real
world" (tm) are RFC compliant (just like email processing, in general).
I'd recommend going with a more forgiving validation than one strictly
based on RFC BNFs.
Googling for "email regular expression" returns a lot of possibilities,
here is a page with 38 of them:
http://regexlib.com/DisplayPatterns.aspx?cattabindex=0&categoryId=1
<http://regexlib.com/DisplayPatterns.aspx?cattabindex=0&categoryId=1>
Or one could just use the parser built into Android:
http://developer.android.com/reference/android/text/util/Rfc822Tokenizer.html
-- Kostya
06.10.2011 23:47, Jim Graham пишет:
On Thu, Oct 06, 2011 at 07:06:36PM +0530, Devendran Raju wrote:
I want to validate of email formate in my app. Anyone having sample
code for that.
Start with RFC 822.
Later,
--jim
--
Kostya Vasilyev
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en