"10111".matches("[123456789]\\d{4}")
上面这个表达式返回true,这是为什么
[123456789]表示匹配第一个字符为其中任意一个, \\d{4}就是匹配任意4个数字
Sign in to make a reply
黯然
上面这个表达式返回true,这是为什么