A matches method is defined by this class as a convenience for when a regular expression is used just once.
www.cs.duke.edu