Java examples for java.util.regex:Match Word
is Validate Alpha Chars by Regex
//package com.java2s; import java.util.regex.Pattern; public class Main { private static final Pattern alphaCharPattern = Pattern .compile("\\p{Alpha}*"); public static boolean isValidateAlphaChars(String input) { return alphaCharPattern.matcher(input).matches(); }// w w w. ja va 2 s. co m }