代码一,while循环体不执行。
System.out.println(tokenString);打印出结果也为 中国System.out.println(tokenString);
p = Pattern.compile(tokenString, Pattern.UNICODE_CASE);
m = p.matcher(title);
while(m.find())
{
System.out.println("111");
pos[m.start()] = 's';
pos[m.end()] = 'e';
}代码一,while循环体正常执行。System.out.println(tokenString);
p = Pattern.compile("中国", Pattern.UNICODE_CASE);
m = p.matcher(title);
while(m.find())
{
System.out.println("111");
pos[m.start()] = 's';
pos[m.end()] = 'e';
}请问,如何使代码1也正常执行呢?