How "Pattern.matches(regex, input)" function works?

Printable View