W3cubDocs

/Dart 2

RegExpMatch class

A regular expression match.

Regular expression matches are Matches, but also include the ability to retrieve the names for any named capture groups and to retrieve matches for named capture groups by name instead of their index.

Implemented types
Annotations
  • @Since("2.3")

Constructors

RegExpMatch()

Properties

groupNamesIterable<String>
read-only
The names of the captured groups in the match.
endint
read-only, inherited
Returns the index in the string after the last character of the match.
groupCountint
read-only, inherited
Returns the number of captured groups in the match. [...]
hashCodeint
read-only, inherited
The hash code for this object. [...]
inputString
read-only, inherited
The string on which this match was computed.
patternPattern
read-only, inherited
The pattern used to search in input.
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
startint
read-only, inherited
Returns the index in the string where the match starts.

Methods

namedGroup(String name) → String
The string matched by the group named name. [...]
group(int group) → String
inherited
Returns the string matched by the given group. [...]
groups(List<int> groupIndices) → List<String>
inherited
Returns a list of the groups with the given indices. [...]
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]
operator [](int group) → String
inherited
Returns the string matched by the given group. [...]

© 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-class.html