What does the find() method of the Matcher class do?
It checks if the entire string matches the pattern
It finds the next occurrence of the pattern in the input string
It replaces the matched string with another string
It splits the string based on the regular expression
This question is part of this quiz :
Java Regex Basics and Pattern Matching