## Uses of Class
java.util.regex.Pattern

- Packages that use Pattern
  Package | Description
  --- | ---
  java.util.regex | Classes for matching character sequences against patterns specified by regular expressions.

- - ### Uses of Pattern in java.util.regex

    Methods in java.util.regex that return Pattern
    Modifier and Type | Method and Description
    --- | ---
    `static Pattern` | Pattern.`compile(String regex)` Compiles the given regular expression into a pattern.
    `static Pattern` | Pattern.`compile(String regex, int flags)` Compiles the given regular expression into a pattern with the given flags.
    `Pattern` | Matcher.`pattern()` Returns the pattern that is interpreted by this matcher.

    Methods in java.util.regex with parameters of type Pattern
    Modifier and Type | Method and Description
    --- | ---
    `Matcher` | Matcher.`usePattern(Pattern newPattern)` Changes the `Pattern` that this `Matcher` uses to find matches with.

Copyright © 2025 API Design. All Rights Reserved.