Enum Class RegexPattern.ModifierFlag

java.lang.Object
java.lang.Enum<RegexPattern.ModifierFlag>
com.google.common.labs.regex.RegexPattern.ModifierFlag
All Implemented Interfaces:
Serializable, Comparable<RegexPattern.ModifierFlag>, Constable
Enclosing interface:
RegexPattern

public static enum RegexPattern.ModifierFlag extends Enum<RegexPattern.ModifierFlag>
Regex modifiers that can be enabled or disabled inline.
  • Enum Constant Details

    • CASE_INSENSITIVE

      public static final RegexPattern.ModifierFlag CASE_INSENSITIVE
      Enables case-insensitive matching (i).
    • UNIX_LINES

      public static final RegexPattern.ModifierFlag UNIX_LINES
      Enables Unix lines mode (d), where only '\n' is recognized as a line terminator.
    • MULTILINE

      public static final RegexPattern.ModifierFlag MULTILINE
      Enables multiline mode (m), where ^ and $ match at the beginning/end of line.
    • DOTALL

      public static final RegexPattern.ModifierFlag DOTALL
      Enables dotall mode (s), where . matches any character including line terminators.
    • UNICODE_CASE

      public static final RegexPattern.ModifierFlag UNICODE_CASE
      Enables Unicode-aware case folding (u).
    • COMMENTS

      public static final RegexPattern.ModifierFlag COMMENTS
      Enables comments and whitespace in pattern (x).
    • UNICODE_CHARACTER_CLASS

      public static final RegexPattern.ModifierFlag UNICODE_CHARACTER_CLASS
      Enables Unicode character class support (U).
    • CANONICAL_EQUIVALENCE

      public static final RegexPattern.ModifierFlag CANONICAL_EQUIVALENCE
      Enables canonical equivalence matching (c).
  • Method Details

    • values

      public static RegexPattern.ModifierFlag[] 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 RegexPattern.ModifierFlag 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RegexPattern.ModifierFlag>