SearchContext.getRegexError

Regular expression patterns must follow certain rules. If #GtkSourceSearchSettings:search-text breaks a rule, the error can be retrieved with this function. The error domain is #G_REGEX_ERROR.

Free the return value with glib.error.ErrorWrap.free.

class SearchContext
getRegexError
()

Return Value

Type: glib.error.ErrorWrap

the #GError, or null if the pattern is valid.