Answers for "check email format after @ flutter"

1

flutter check email format

^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,253}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,253}[a-zA-Z0-9])?)*$
Posted by: Guest on June-16-2021
0

check email format after @ flutter

// It can check domains like [email protected] and [email protected]

void main() {
  var email = "[email protected]";
  bool emailValid = RegExp(r'^.+@[a-zA-Z]+\.{1}[a-zA-Z]+(\.{0,1}[a-zA-Z]+)$').hasMatch(email);
  print (emailValid); // true
}
Posted by: Guest on April-13-2022

Browse Popular Code Answers by Language