Check out example codes for "dart regex for email". It will help you in understanding the concepts better.

Code Example 1

var email = "[email protected]"
bool emailValid = RegExp(r"^[a-zA-Z0-9.a-zA-Z0-9.!#$%&'*+-/=?^_`{|}~][email protected][a-zA-Z0-9]+\.[a-zA-Z]+").hasMatch(email);

Learn ReactJs, React Native from akashmittal.com