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));
        
    }

posted on 2017-06-01 16:39  两枝梅  阅读(1542)  评论(0编辑  收藏  举报