Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
private static String EmailPattern = "^[A-Za-z0-9_.-]+@[A-Za-z0-9_-]+.[a-z]{2,6}$";
public static boolean isEmailValid(String email) {
return email.matches(EmailPattern);
}
}