Possible Duplicate:
How should I validate an e-mail address on Android?
I used this:
Pattern.matches("^(.+)@([^@]+[^.])$", email)
it didn't work when I enter asdf@asdf
, why pelase?
Possible Duplicate:
How should I validate an e-mail address on Android?
I used this:
Pattern.matches("^(.+)@([^@]+[^.])$", email)
it didn't work when I enter asdf@asdf
, why pelase?
Pattern.matches("^(.+)@([^@]+[^.]).([^.])$", email)
It works for emails like this:
name@name.com