!!!Java ASCII文字列かの判定 [Java]{{category 正規表現}} *http://docs.oracle.com/javase/jp/6/api/java/util/regex/Pattern.html#sum !!ASCII文字のみから構成されるか確認 if (str.matches("\\p{ASCII}*")) { System.out.println("Ascii charcter only."); } !!ASCII文字以外が含まれているか確認 if (str.matches("^.*[^\\p{ASCII}].*")) { System.out.println("Not Ascii charcter conatins."); }