A matcher is created from a pattern by invoking the pattern's matcher method. Once created, a matcher can be used to ...
docs.oracle.com