Enum RXFlags
[Flags]
public enum RXFlags : ulong
Remarks
Many options also can be specified in regular expression (RE):
- These can be anywhere in RE:
(?i)CASELESS,(?m)MULTILINE,(?s)DOTALL,(?n)NO_AUTO_CAPTURE,(?x)EXTENDED,(?xx)EXTENDED_MORE,(?J)DUPNAMES,(?U)UNGREEDY. Can be multiple, like(?ms). Can be unset, like(?-i). RE"\Qtext\E"is like RE"text"with flagLITERAL. - Instead of
ANCHOREDcan be used\Gat the start of RE. Or^, except in multiline mode. - Instead of
ENDANCHOREDcan be used\zat the end of RE. Or$, except in multiline mode. - Flag UTF is implicitly added if RE contains non-ASCII characters and there is no flag
NEVER_UTF. - These must be at the very start and are named like flags:
(*UTF),(*UCP),(*NOTEMPTY),(*NOTEMPTY_ATSTART),(*NO_AUTO_POSSESS),(*NO_DOTSTAR_ANCHOR),(*NO_START_OPT). - More info in PCRE syntax reference.
Some of RXFlags flags also exist in RXMatchFlags. You can set them either when calling regexp constructor or when calling regexp functions that have parameter more. You can use different flags for each function call with the same regexp variable.
Namespace: Au.Types
Assembly: Au.dll
Fields
| Name | Description |
|---|---|
| ALLOW_EMPTY_CLASS | Allow empty classes |
| ALT_BSUX | Alternative handling of |
| ALT_CIRCUMFLEX | Alternative handling of |
| ALT_EXTENDED_CLASS | Alternative extended character class syntax |
| ALT_VERBNAMES | Process backslashes in verb names |
| ANCHORED | Match only at the first position |
| AUTO_CALLOUT | Compile automatic callouts |
| CASELESS | Do caseless matching |
| DOLLAR_ENDONLY |
|
| DOTALL |
|
| DUPNAMES | Allow duplicate names for subpatterns |
| ENDANCHORED | Pattern can match only at end of subject |
| EXTENDED | Ignore white space and |
| EXTENDED_MORE | |
| EXTRA_ASCII_BSD |
|
| EXTRA_ASCII_BSS |
|
| EXTRA_ASCII_BSW |
|
| EXTRA_ASCII_DIGIT |
|
| EXTRA_ASCII_POSIX | POSIX classes remain ASCII in UCP mode |
| EXTRA_CASELESS_RESTRICT | Disable mixed ASCII/non-ASCII case folding |
| EXTRA_MATCH_LINE | Pattern matches whole lines |
| EXTRA_MATCH_WORD | Pattern matches "words" |
| EXTRA_NEVER_CALLOUT | Disallow callouts in pattern |
| EXTRA_TURKISH_CASING | Use Turkish I case folding |
| FIRSTLINE | Force matching to be before newline |
| LITERAL | Pattern characters are all literal |
| MATCH_INVALID_UTF | Enable support for matching invalid UTF |
| MATCH_UNSET_BACKREF | Match unset backreferences |
| MULTILINE |
|
| NEVER_BACKSLASH_C | Lock out the use of |
| NEVER_UCP | Lock out |
| NEVER_UTF | Lock out |
| NOTBOL | Subject string is not the beginning of a line |
| NOTEMPTY | An empty string is not a valid match |
| NOTEMPTY_ATSTART | An empty string at the start of the subject is not a valid match |
| NOTEOL | Subject string is not the end of a line |
| NO_AUTO_CAPTURE | Disable numbered capturing paren-theses (named ones available) |
| NO_AUTO_POSSESS | Disable auto-possessification |
| NO_DOTSTAR_ANCHOR | Disable automatic anchoring for |
| NO_START_OPTIMIZE | Disable match-time start optimizations |
| NO_UTF_CHECK | Do not check the pattern for UTF validity |
| PARTIAL_HARD | Allow partial hard match. See RXMatch.IsPartial. |
| PARTIAL_SOFT | Allow partial soft match. See RXMatch.IsPartial. |
| UCP | Use Unicode properties for |
| UNGREEDY | Invert greediness of quantifiers |
| UTF | Fully support Unicode text (case-insensitivity etc). More info in PCRE documentation topic pcre2unicode.
This flag is implicitly added if regular expression contains non-ASCII characters and there is no flag |