RegexCompileFlags
Description:
[ Flags ]
public enum RegexCompileFlags
Flags specifying compile-time options.
Content:
Enum values:
- CASELESS - Letters in the pattern
match both upper- and lowercase letters.
- MULTILINE - By default, GRegex
treats the strings as consisting of a single line of characters (even if it actually contains newlines).
- DOTALL - A dot metacharater (".
- EXTENDED - Whitespace data
characters in the pattern are totally ignored except when escaped or inside a character class.
- ANCHORED - The pattern is forced to
be "anchored", that is, it is constrained to match only at the first matching point in the string that is being searched.
- DOLLAR_ENDONLY - A dollar
metacharacter ("$") in the pattern matches only at the end of the string.
- UNGREEDY - Inverts the "greediness"
of the quantifiers so that they are not greedy by default, but become greedy if followed by "?".
- RAW - Usually strings must be valid
UTF-8 strings, using this flag they are considered as a raw sequence of bytes.
- NO_AUTO_CAPTURE - Disables
the use of numbered capturing parentheses in the pattern.
- OPTIMIZE - Optimize the regular
expression.
- DUPNAMES - Names used to identify
capturing subpatterns need not be unique.
- NEWLINE_CR - Usually any newline
character or character sequence is recognized.
- NEWLINE_LF - Usually any newline
character or character sequence is recognized.
- NEWLINE_CRLF - Usually any
newline character or character sequence is recognized.
- NEWLINE_ANYCRLF - Usually
any newline character or character sequence is recognized.
- BSR_ANYCRLF - Usually any
newline character or character sequence is recognised.
- JAVASCRIPT_COMPAT -
Changes behaviour so that it is compatible with JavaScript rather than PCRE.