pattern is valid.
SearchContext.getRegexError
glib.error.ErrorWrap getRegexError()Regular expression patterns must follow certain rules. If gtksource.search_settings.SearchSettings.searchText breaks a rule, the error can be retrieved with this function.
The error domain is glib.types.RegexError.
Free the return value with glib.error.ErrorWrap.free.
Returns
the #GError, or null if the