String str="life is a ( _movie)";
//获得一个正则表达式对象
Pattern p = Pattern.compile("life is a ( _movie)");
//使用正则表达式对象处理指定字符串,并获得结果对象
Matcher m = p.matcher(str);
//从正则表达式结果对象中获得信息
while (true){
if(m.find()) {
System.out.print(m.group());
}else break;
}
为什么不能匹配