dart:core
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
Constructors
- RegExpMatch()
Properties
- groupNames → Iterable<String>
read-only
- The names of the captured groups in the match.
- end → int
read-only, inherited
- Returns the index in the string after the last character of the match.
- groupCount → int
read-only, inherited
- Returns the number of captured groups in the match. [...]
- hashCode → int
read-only, inherited
- The hash code for this object. [...]
- input → String
read-only, inherited
- The string on which this match was computed.
- pattern → Pattern
read-only, inherited
- The pattern used to search in input.
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
- start → int
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
. [...]