流言终结者第十一季剧情简介

"; //Test Data String inputString3 = "可以下水的潜艇,N1K2-J改
价格¥1.050,370"; //Test Data String inputString4 = "热轧镀锌板,1MM,800*2000 20吨,最大件6吨,最小件3吨,0.5MM / 1MM / 1.2MM / 1.5MM / 2.5MM / 3MM / 4MM / 5MM / 6MM / 8MM / 10MM / 12MM          货期20天,供货量100吨"; String inputString5 = "卡拉花对比卡023利群100s"; System.out.println(isMatch(inputString1)); System.out.println(isMatch(inputString2)); System.out.println(isMatch(inputString3)); System.out.println(isMatch(inputString4)); System.out.println(isMatch(inputString5)); } public static boolean isMatch(String text) { if (StringUtils.isNotBlank(text)) { Matcher matcher = pattern.matcher(text); return matcher.matches(); } return false; } public static boolean hasLink(String text) { if (StringUtils.isNotBlank(text)) { Matcher matcher = pattern_link.matcher(text); return matcher.find(); } return false; } public static String extractChinese(String text) { if (StringUtils.isNotBlank(text)) { Matcher matcher = pattern_split.matcher(text); if (matcher.find()) { return matcher.group().replaceAll("(?<=
).*(?=$)", ""); } } return ""; } public static String extractChinese(String text, String split) { if (StringUtils.isNotBlank(text)) { Matcher matcher = pattern_split.matcher(text); if (matcher.find()) { return matcher.group().split(split)[0].replaceAll("(?<=
).*(?=$)", "").trim(); } } return ""; } public static String extractUrl(String text) { if (StringUtils.isNotBlank(text)) { Matcher matcher = pattern_link.matcher(text); if (matcher.find()) { return matcher.group(); } } return ""; } public static String extractUrl(String text