日期:2014-05-20 浏览次数:20659 次
String s = "TITLE承运日期" ; [color=#FF00FF]//假设s = TITLE承运日期[/color] Pattern p = Pattern.compile("(?<=TITLE)([\u4e00-\u9fa5]+)"); Matcher m = p.matcher(s); while(m.find()){ //判断是否匹配 System.out.println(m.group()); //匹配成功,输出该中文字符 }