LoginSignup
9
13

More than 5 years have passed since last update.

Androidでemailのバリデーションを行う

Posted at

Android SDKにあるみたい。そこらにあるダメなバリデータとは異なり、 foo+bar@gmail.com のように+を含むものであっても認めてくれる。

boolean ok = android.util.Patterns.EMAIL_ADDRESS.matcher(input).matches();

cf. http://stackoverflow.com/questions/9355899/android-email-edittext-validation

9
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
13