Hello all,
I am new to regular expressions. I would really appreciate if someone could shed some light on why the below matcher fails. In order to use special char, I think the use "\\" is necessary, please correct if I am wrong.
Pattern grpP = Pattern.compile("\\*");
Matcher grpM = grpP.matcher("*");
boolean match = grpM.matches();
MATCH IS FALSE, SHOULDN'T THIS BE TRUE.
Thanks & Regards,
Pinal