Flags specifying match-time options.
G_REGEX_MATCH_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. This effect can also be achieved by
appropriate constructs in the pattern itself such as the "^"
metacharater.
G_REGEX_MATCH_NOTBOL
Specifies that first character of the string is
not the beginning of a line, so the circumflex metacharacter should
not match before it. Setting this without G_REGEX_MULTILINE (at
compile time) causes circumflex never to match. This option affects
only the behaviour of the circumflex metacharacter, it does not
affect "\A".
G_REGEX_MATCH_NOTEOL
Specifies that the end of the subject string is
not the end of a line, so the dollar metacharacter should not match
it nor (except in multiline mode) a newline immediately before it.
Setting this without G_REGEX_MULTILINE (at compile time) causes
dollar never to match. This option affects only the behaviour of
the dollar metacharacter, it does not affect "\Z" or "\z".
G_REGEX_MATCH_NOTEMPTY
An empty string is not considered to be a valid
match if this option is set. If there are alternatives in the pattern,
they are tried. If all the alternatives match the empty string, the
entire match fails. For example, if the pattern "a?b?" is applied to
a string not beginning with "a" or "b", it matches the empty string
at the start of the string. With this flag set, this match is not
valid, so GRegex searches further into the string for occurrences
of "a" or "b".
G_REGEX_MATCH_PARTIAL
Turns on the partial matching feature, for more
documentation on partial matching see g_match_info_is_partial_match().
G_REGEX_MATCH_NEWLINE_CR
Overrides the newline definition set when
creating a new GRegex, setting the '\r' character as line terminator.
G_REGEX_MATCH_NEWLINE_LF
Overrides the newline definition set when
creating a new GRegex, setting the '\n' character as line terminator.
G_REGEX_MATCH_NEWLINE_CRLF
Overrides the newline definition set when
creating a new GRegex, setting the '\r\n' characters as line terminator.
G_REGEX_MATCH_NEWLINE_ANY
Overrides the newline definition set when
creating a new GRegex, any newline character or character sequence
is recognized.
Since 2.14
Flags specifying match-time options. G_REGEX_MATCH_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. This effect can also be achieved by appropriate constructs in the pattern itself such as the "^" metacharater. G_REGEX_MATCH_NOTBOL Specifies that first character of the string is not the beginning of a line, so the circumflex metacharacter should not match before it. Setting this without G_REGEX_MULTILINE (at compile time) causes circumflex never to match. This option affects only the behaviour of the circumflex metacharacter, it does not affect "\A". G_REGEX_MATCH_NOTEOL Specifies that the end of the subject string is not the end of a line, so the dollar metacharacter should not match it nor (except in multiline mode) a newline immediately before it. Setting this without G_REGEX_MULTILINE (at compile time) causes dollar never to match. This option affects only the behaviour of the dollar metacharacter, it does not affect "\Z" or "\z". G_REGEX_MATCH_NOTEMPTY An empty string is not considered to be a valid match if this option is set. If there are alternatives in the pattern, they are tried. If all the alternatives match the empty string, the entire match fails. For example, if the pattern "a?b?" is applied to a string not beginning with "a" or "b", it matches the empty string at the start of the string. With this flag set, this match is not valid, so GRegex searches further into the string for occurrences of "a" or "b". G_REGEX_MATCH_PARTIAL Turns on the partial matching feature, for more documentation on partial matching see g_match_info_is_partial_match(). G_REGEX_MATCH_NEWLINE_CR Overrides the newline definition set when creating a new GRegex, setting the '\r' character as line terminator. G_REGEX_MATCH_NEWLINE_LF Overrides the newline definition set when creating a new GRegex, setting the '\n' character as line terminator. G_REGEX_MATCH_NEWLINE_CRLF Overrides the newline definition set when creating a new GRegex, setting the '\r\n' characters as line terminator. G_REGEX_MATCH_NEWLINE_ANY Overrides the newline definition set when creating a new GRegex, any newline character or character sequence is recognized. Since 2.14