W3cubDocs

/Dart 2

namedGroup method

String namedGroup (String name)

The string matched by the group named name.

Returns the string matched by the capture group named name, or null if no string was matched by that capture group as part of this match.

The name must be the name of a named capture group in the regular expression creating this match (that is, the name must be in groupNames).

Implementation

String namedGroup(String name);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-core/RegExpMatch/namedGroup.html