if we are saying .matches() tries to match entire input string then why following returns false?
String input = "HOLIDAY"; String pattern = "H*I*Y";
input.matches(pattern) --> returns false;
Note: I have already looked at Regex doesn't work in String.matches()