Class RegexFlags
java.lang.Object
com.azure.core.util.ExpandableStringEnum<RegexFlags>
com.azure.search.documents.indexes.models.RegexFlags
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
Defines flags that can be combined to control how regular expressions are used in the pattern analyzer and pattern
tokenizer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegexFlagsEnables canonical equivalence.static final RegexFlagsEnables case-insensitive matching.static final RegexFlagsPermits whitespace and comments in the pattern.static final RegexFlagsEnables dotall mode.static final RegexFlagsEnables literal parsing of the pattern.static final RegexFlagsEnables multiline mode.static final RegexFlagsEnables Unicode-aware case folding.static final RegexFlagsEnables Unix lines mode. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RegexFlagsfromString(String name) Creates or finds a RegexFlags from its string representation.static Collection<RegexFlags> values()Gets known RegexFlags values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
CANON_EQ
Enables canonical equivalence. -
CASE_INSENSITIVE
Enables case-insensitive matching. -
COMMENTS
Permits whitespace and comments in the pattern. -
DOT_ALL
Enables dotall mode. -
LITERAL
Enables literal parsing of the pattern. -
MULTILINE
Enables multiline mode. -
UNICODE_CASE
Enables Unicode-aware case folding. -
UNIX_LINES
Enables Unix lines mode.
-
-
Constructor Details
-
RegexFlags
Deprecated.Use thefromString(String)factory method.Creates a new instance of RegexFlags value.
-
-
Method Details
-
fromString
Creates or finds a RegexFlags from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding RegexFlags.
-
values
Gets known RegexFlags values.- Returns:
- known RegexFlags values.
-
fromString(String)factory method.