Package org.pcre4j

Enum Class Pcre2CompileOption

java.lang.Object
java.lang.Enum<Pcre2CompileOption>
org.pcre4j.Pcre2CompileOption
All Implemented Interfaces:
Serializable, Comparable<Pcre2CompileOption>, Constable

public enum Pcre2CompileOption extends Enum<Pcre2CompileOption>
  • Enum Constant Details

    • ANCHORED

      public static final Pcre2CompileOption ANCHORED
      Force pattern anchoring
    • NO_UTF_CHECK

      public static final Pcre2CompileOption NO_UTF_CHECK
      Do not check the pattern for UTF validity (only relevant if UTF is set)
    • ENDANCHORED

      public static final Pcre2CompileOption ENDANCHORED
      Pattern can match only at end of subject
    • ALLOW_EMPTY_CLASS

      public static final Pcre2CompileOption ALLOW_EMPTY_CLASS
      Allow empty classes
    • ALT_BSUX

      public static final Pcre2CompileOption ALT_BSUX
      Alternative handling of ⧵u, ⧵U, and ⧵x
    • AUTO_CALLOUT

      public static final Pcre2CompileOption AUTO_CALLOUT
      Compile automatic callouts
    • CASELESS

      public static final Pcre2CompileOption CASELESS
      Do caseless matching
    • DOLLAR_ENDONLY

      public static final Pcre2CompileOption DOLLAR_ENDONLY
      $ not to match newline at end
    • DOTALL

      public static final Pcre2CompileOption DOTALL
      . matches anything including NL
    • DUPNAMES

      public static final Pcre2CompileOption DUPNAMES
      Allow duplicate names for subpatterns
    • EXTENDED

      public static final Pcre2CompileOption EXTENDED
      Ignore white space and # comments
    • FIRSTLINE

      public static final Pcre2CompileOption FIRSTLINE
      Force matching to be before newline
    • MATCH_UNSET_BACKREF

      public static final Pcre2CompileOption MATCH_UNSET_BACKREF
      Match unset backreferences
    • MULTILINE

      public static final Pcre2CompileOption MULTILINE
      ^ and $ match newlines within data
    • NEVER_UCP

      public static final Pcre2CompileOption NEVER_UCP
      Lock out PCRE2_UCP, e.g. via (*UCP)
    • NEVER_UTF

      public static final Pcre2CompileOption NEVER_UTF
      Lock out PCRE2_UTF, e.g. via (*UTF)
    • NO_AUTO_CAPTURE

      public static final Pcre2CompileOption NO_AUTO_CAPTURE
      Disable numbered capturing parentheses (named ones available)
    • NO_AUTO_POSSESS

      public static final Pcre2CompileOption NO_AUTO_POSSESS
      Disable auto-possessification
    • NO_DOTSTAR_ANCHOR

      public static final Pcre2CompileOption NO_DOTSTAR_ANCHOR
      Disable automatic anchoring for .*
    • NO_START_OPTIMIZE

      public static final Pcre2CompileOption NO_START_OPTIMIZE
      Disable match-time start optimizations
    • UCP

      public static final Pcre2CompileOption UCP
      Use Unicode properties for \d, \w, etc.
    • UNGREEDY

      public static final Pcre2CompileOption UNGREEDY
      Invert greediness of quantifiers
    • UTF

      public static final Pcre2CompileOption UTF
      Treat pattern and subjects as UTF strings
    • NEVER_BACKSLASH_C

      public static final Pcre2CompileOption NEVER_BACKSLASH_C
      Lock out the use of \C in patterns
    • ALT_CIRCUMFLEX

      public static final Pcre2CompileOption ALT_CIRCUMFLEX
      Alternative handling of ^ in multiline mode
    • ALT_VERBNAMES

      public static final Pcre2CompileOption ALT_VERBNAMES
      Process backslashes in verb names
    • USE_OFFSET_LIMIT

      public static final Pcre2CompileOption USE_OFFSET_LIMIT
      Enable offset limit for unanchored matching
    • EXTENDED_MORE

      public static final Pcre2CompileOption EXTENDED_MORE
    • LITERAL

      public static final Pcre2CompileOption LITERAL
      Pattern characters are all literal
    • MATCH_INVALID_UTF

      public static final Pcre2CompileOption MATCH_INVALID_UTF
      Enable support for matching invalid UTF
  • Method Details

    • values

      public static Pcre2CompileOption[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Pcre2CompileOption valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOf

      public static Optional<Pcre2CompileOption> valueOf(int value)
      Get the enum value by its option value.
      Parameters:
      value - the integer value of the option
      Returns:
      the flag
    • value

      public int value()
      Get the option value of the enum value.
      Returns:
      the integer value of the option