为什么会这样:
String str = "099.9 102.2" + (char) 0x0D;
RE re = new RE("^([0-9]{3}.[0-9]) ([0-9]{3}.[0-9])\r$");
System.out.println(re.match(str));
但这不会:
String str = "099.9 102.2" + (char) 0x0D;
RE re = new RE("^([0-9]{3}.[0-9]) \1\r$");
System.out.println(re.match(str));
反向引用似乎不起作用......我错过了什么?