Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static boolean isEmailValid(String email) {
String regex = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
return email.matches(regex);
}
}