Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static boolean isEmailByRegex(String email) {
String regex = "^[A-Za-z0-9]{1,40}@[A-Za-z0-9]{1,40}\\.[A-Za-z]{2,3}$";
return email.matches(regex);
}
}