Module java.base
Package java.util.regex

# Class Pattern

=
public final class Pattern
extends java.lang.Object
implements java.io.Serializable

## Fields

- =
  public static final int CANON_EQ = 128
- =
  public static final int CASE_INSENSITIVE = 2
- =
  public static final int COMMENTS = 4
- =
  public static final int DOTALL = 32
- =
  public static final int LITERAL = 16
- =
  public static final int MULTILINE = 8
- =
  public static final int UNICODE_CASE = 64
- =
  public static final int UNICODE_CHARACTER_CLASS = 256
- =
  public static final int UNIX_LINES = 1

## Methods

- =
  public java.util.function.Predicate<java.lang.String> asMatchPredicate()
- =
  public java.util.function.Predicate<java.lang.String> asPredicate()
- =
  public static java.util.regex.Pattern compile(java.lang.String arg0)
- =
  public static java.util.regex.Pattern compile(java.lang.String arg0, int arg1)
- =
  public int flags()
- =
  public java.util.regex.Matcher matcher(java.lang.CharSequence arg0)
- =
  public static boolean matches(java.lang.String arg0, java.lang.CharSequence arg1)
- =
  public java.util.Map<java.lang.String, java.lang.Integer> namedGroups()
- =
  public java.lang.String pattern()
- =
  public static java.lang.String quote(java.lang.String arg0)
- =
  public java.lang.String[] split(java.lang.CharSequence arg0)
- =
  public java.lang.String[] split(java.lang.CharSequence arg0, int arg1)
- =
  public java.util.stream.Stream<java.lang.String> splitAsStream(java.lang.CharSequence arg0)
- =
  public java.lang.String[] splitWithDelimiters(java.lang.CharSequence arg0, int arg1)
- =
  public java.lang.String toString()

## Serialized Form

=

### serialVersionUID

=5073258162644648461

### Serialized Fields

- =
  int flags
- =
  java.lang.String pattern

### Serialization Methods

- =
  private void readObject(java.io.ObjectInputStream arg0) throws java.io.IOException, java.lang.ClassNotFoundException

## Summary

No differences.