Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool isEmail(String em) {
- String p = r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$';
- RegExp regExp = new RegExp(p);
- return regExp.hasMatch(em);
- }
Add Comment
Please, Sign In to add comment