要求用户名由字母、数字、

mac2022-06-30  80

public class Isnum { public static void main(String[] args) throws Exception { String num = "hello"; String regex = "\\w{6,15}"; System.out.println(num.matches(regex)); } }

转载于:https://www.cnblogs.com/fanren224/p/8457178.html

最新回复(0)