Uses of Class
java.util.regex.Pattern

Packages that use Pattern 
Package Description
java.util
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
java.util.regex
Classes for matching character sequences against patterns specified by regular expressions.