RegexFlags Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. search. documents. indexes. models. RegexFlags
- com.
- com.
public final class RegexFlags
extends ExpandableStringEnum<RegexFlags>
Defines flags that can be combined to control how regular expressions are used in the pattern analyzer and pattern tokenizer.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
static final
Regex |
CANON_EQ
Enables canonical equivalence. |
|
static final
Regex |
CASE_INSENSITIVE
Enables case-insensitive matching. |
|
static final
Regex |
COMMENTS
Permits whitespace and comments in the pattern. |
|
static final
Regex |
DOT_ALL
Enables dotall mode. |
|
static final
Regex |
LITERAL
Enables literal parsing of the pattern. |
|
static final
Regex |
MULTILINE
Enables multiline mode. |
|
static final
Regex |
UNICODE_CASE
Enables Unicode-aware case folding. |
|
static final
Regex |
UNIX_LINES
Enables Unix lines mode. |
Constructor Summary
| Constructor | Description |
|---|---|
| RegexFlags() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Regex |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Regex |
fromString(String name)
Creates or finds a Regex |
|
static
Collection<Regex |
values()
Gets known Regex |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
CANON_EQ
public static final RegexFlags CANON_EQ
Enables canonical equivalence.
CASE_INSENSITIVE
public static final RegexFlags CASE_INSENSITIVE
Enables case-insensitive matching.
COMMENTS
public static final RegexFlags COMMENTS
Permits whitespace and comments in the pattern.
DOT_ALL
public static final RegexFlags DOT_ALL
Enables dotall mode.
LITERAL
public static final RegexFlags LITERAL
Enables literal parsing of the pattern.
MULTILINE
public static final RegexFlags MULTILINE
Enables multiline mode.
UNICODE_CASE
public static final RegexFlags UNICODE_CASE
Enables Unicode-aware case folding.
UNIX_LINES
public static final RegexFlags UNIX_LINES
Enables Unix lines mode.
Constructor Details
RegexFlags
@Deprecated
public RegexFlags()
Deprecated
Creates a new instance of RegexFlags value.
Method Details
fromString
public static RegexFlags fromString(String name)
Creates or finds a RegexFlags from its string representation.
Parameters:
Returns:
values
public static Collection<RegexFlags> values()
Gets known RegexFlags values.
Returns: