Java tutorial
//package com.java2s; import java.util.regex.Pattern; public class Main { public static boolean isValidateWxId(String s) { boolean flag; if (Pattern.compile("[\u4E00-\u9FA5]").matcher(s).find()) flag = false; else flag = true; return flag; } }