GLib.Regex.prototype.get_capture_count

function get_capture_count(): Number(gint) {
    // Gjs wrapper for g_regex_get_capture_count()
}
  

Returns the number of capturing subpatterns in the pattern.

Since 2.14

Returns

the number of capturing subpatterns