This should return true, but instead returns false.
"ADC".matches("A.*?C")
I've tested it on a javascript regex tester : http://regexpal.com/
and it works, why doesn't it work in Java?
EDIT: Same with this:
System.out.println("DEAGHHF".matches("(A.*?C|C.*?A|D.*?C|C.*?D|A.*?F|F.*?A)"));
Returns false, regexpal returns true (aswhile as other javascript regex engines).
"ADC".matches("A.*?C").