Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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