62,612
社区成员
发帖
与我相关
我的任务
分享
public static void main(String[] args) {
String input = "\\\\u1234\\\\u34fa";
String regex = "\\\\u([0-9a-f]{4})";
Pattern p = Pattern.compile(regex);
Matcher m = p.matcher(input);
while (m.find()) {
System.out.println(m.group() + " " + m.group(1) );
}
}