编写验证email的正则表达式

public void main(){
        String emailRegEx = "^[a-zA-Z0-9_\.-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,4}$";
        String email = "bieg@qef.com";
        System.out.println(email.matches(emailRegEx));
        
    }

原文地址:https://www.cnblogs.com/ls00/p/6929590.html