Java判断字符串中是否含有英文

实现代码:

/*
     * 判断字符串中是否含有英文,包含返回true
     */
    public boolean isENChar(String string) {
    	boolean flag = false;
    	Pattern p = Pattern.compile("[a-zA-z]");
        if(p.matcher(string).find()) {
        	flag = true;
        }
        return flag;
    }
原文地址:https://www.cnblogs.com/Big-Boss/p/10062591.html