----------- ^\\d{4}\\d{2}\\d{2}$ java两种方式 String.matcher("reg") 或Pattern.match("reg",source) 转载于:https://www.cnblogs.com/fpcbk/p/9984396.html