MCPcopy Create free account
hub / github.com/SeanDragon/protools / isZh

Method isZh

common/src/main/java/pro/tools/data/text/ToolRegex.java:230–232  ·  view source on GitHub ↗

验证汉字 @param input 待验证文本 @return true: 匹配 false: 不匹配

(CharSequence input)

Source from the content-addressed store, hash-verified

228 * @return {@code true}: 匹配<br>{@code false}: 不匹配
229 */
230 public static boolean isZh(CharSequence input) {
231 return isMatch(REGEX_ZH, input);
232 }
233
234 /**
235 * 验证用户名 <p>取值范围为a-z,A-Z,0-9,"_",汉字,不能以"_"结尾,用户名必须是6-20位</p>

Callers

nothing calls this directly

Calls 1

isMatchMethod · 0.95

Tested by

no test coverage detected