RegexCompileFlags
Description:
[ Version ( since = "2.14" ) ]
[ CCode ( cprefix = "G_REGEX_" , has_type_id = false ) ]
[ Flags ]
public enum RegexCompileFlags
Flags specifying compile-time options.
Content:
Enum values:
- 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.
- BSR_ANYCRLF - Usually any
newline character or character sequence is recognised.
- CASELESS - Letters in the pattern
match both upper- and lowercase letters.
- DOLLAR_ENDONLY - A dollar
metacharacter ("$") in the pattern matches only at the end of the string.
- DOTALL - A dot metacharacter (".
- DUPNAMES - Names used to identify
capturing subpatterns need not be unique.
- EXTENDED - Whitespace data
characters in the pattern are totally ignored except when escaped or inside a character class.
- JAVASCRIPT_COMPAT -
Changes behaviour so that it is compatible with JavaScript rather than PCRE.
- MULTILINE - By default, GRegex
treats the strings as consisting of a single line of characters (even if it actually contains newlines).
- NEWLINE_ANYCRLF - Usually
any newline character or character sequence is recognized.
- NEWLINE_CR - Usually any newline
character or character sequence is recognized.
- NEWLINE_CRLF - Usually any
newline character or character sequence is recognized.
- NEWLINE_LF - Usually any newline
character or character sequence is recognized.
- NO_AUTO_CAPTURE - Disables
the use of numbered capturing parentheses in the pattern.
- OPTIMIZE - Since 2.74 and the port
to pcre2, requests JIT compilation, which, if the just-in-time compiler is available, further processes a compiled pattern into
machine code that executes much faster.
- RAW - Usually strings must be valid
UTF-8 strings, using this flag they are considered as a raw sequence of bytes.
- UNGREEDY - Inverts the "greediness"
of the quantifiers so that they are not greedy by default, but become greedy if followed by "?".