String.matches
给出不同的结果(我认为它有充分的理由,但我不知道为什么)。
请参阅下面的示例:
复杂程序:
...
line.matches(pattern) -> false
...
简单的程序:
String line = "blabla"; //copy pasted during debug of Complex program
String pattern = "bl.*"; //copy pasted during debug of Complex program
line.matches(pattern) -> true
问:如何找出复杂程序中匹配错误的原因?