GLib.Regex.prototype.get_string_number

function get_string_number(name: String): Number(gint) {
    // Gjs wrapper for g_regex_get_string_number()
}
  

Retrieves the number of the subexpression named name.

Since 2.14

name

name of the subexpression

Returns

The number of the subexpression or -1 if name does not exists