安卓开发昵称正则

xiaoxiao2021-02-28  97

public static boolean isConSpeCharacters(String string) { if (string.replaceAll("[\u4e00-\u9fa5]*[a-z]*[A-Z]*\\d*-*_*\\s*", "").length() == 0) { //不包含特殊字符 return false; } return true; }
转载请注明原文地址: https://www.6miu.com/read-21205.html

最新回复(0)