created: 03/25/2010, revised 08/17/2016
This chapter discusses the Pattern
class and
the Matcher
class
from the
java.util.regex
package.
Pattern
classMatcher
classPatternSyntaxException
classcompile()
method of Pattern
matches()
, lookingAt()
, and find()
methods of Matcher
These classes contain the regular expression matching engine of the Java
regex
package, and are the fundamental classes used to implement the
regular expression capabilities of the String
and Scanner
classes.
Which of the above classes do you expect represents a regular expression?