StringBuilder regEx = new StringBuilder("(\d{4})(-|\.|\\|年)(\d{1,2})(-|\.|\\|月)(\d{1,2})");
String news_times_tmp = "公告时间:2018年06月27日";
String news_times = RegexMatchesUtil.getRegexMatches(regEx.toString(), news_times_tmp);
StringBuilder regEx = new StringBuilder("(\d{4})(-|\.|\\|年)(\d{1,2})(-|\.|\\|月)(\d{1,2})");
String news_times_tmp = "公告时间:2018年06月27日";
String news_times = RegexMatchesUtil.getRegexMatches(regEx.toString(), news_times_tmp);