Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 我应该如何在 Android 上验证电子邮件地址?
我用这个:
Pattern.matches("^(.+)@([^@]+[^.])$", email)
我进入时它不起作用asdf@asdf,为什么pelase?
asdf@asdf
Pattern.matches("^(.+)@([^@]+[^.]).([^.])$", email)
它适用于这样的电子邮件:
name@name.com