日期:2014-05-20 浏览次数:20957 次
public static void main(String[] args) { String str = "Gonzalo Giménez-Martín"; Pattern p = Pattern.compile("[\u00C0-\u00FF]"); Matcher m = p.matcher(str); while (m.find()) { System.out.println(m.group()); } }