Java tutorial
//package com.java2s; public class Main { public static boolean isASII(String keys) { String regex = "[\\x00-\\xff]+"; return keys.matches(regex); } }