Regular expression patterns must follow certain rules. If "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 g_error_free().
the GError, or NULL if the pattern is valid. Since 3.10
See Implementation
Regular expression patterns must follow certain rules. If "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 g_error_free().