SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
if (!emailRegistration.matches("[a-zA-Z0-9._-]+@[a-z]+\.[a-z]+")) { editTextEmail.setError("Invalid Email Address"); }