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
More than 5 years have passed since last update.
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
Register as a new user and use Qiita more conveniently