public static void main(String[] args) {
String str = "是我的";
String pattern = "我的$";
boolean matches = str.matches(pattern);
System.out.println(matches);
Pattern r = Pattern.compile(pattern);
Matcher m = r.matcher(str);
System.out.println(m.matches());
}
各位帮忙看看,这个表达式为什么会返回false!!