getNamedGroup static method

String? getNamedGroup(
  1. HttpConnect connect,
  2. String name
)

Retrieves the named capturing group of the given name, specified in map's uri, or null if not found.

Implementation

static String? getNamedGroup(HttpConnect connect, String name) {
  try {
    return (connect.dataset[_attrUriMatch] as RegExpMatch?)?.namedGroup(name);
  } catch (_) { //ignore it
  }
}