Ash*_*sha 1 java regex
我想匹配1234 5678或12345678
1234 5678
12345678
这个正则表达式错了吗?
if(!number.matches("^\\d{4}[, ]\\d{4}$")){ throw new Exception(" number is not valid : "+number); }
sbe*_*eam 6
尝试量词之后 []
[]
^\d{4}[\s,]?\d{4}$
归档时间:
15 年,2 月 前
查看次数:
189 次
最近记录:
14 年,8 月 前