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
Properties
- end → int read-only, inherited
- 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. [...]
- groupNames → Iterable<
String> read-only - The names of the 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
- The index in the string where the match starts.
Methods
- group(
int group) → String? inherited - The string matched by the given
group
. [...] - groups(
List< int> groupIndices) → List<String?> inherited - A list of the groups with the given indices. [...]
- namedGroup(
String name) → String? - The string matched by the group named
name
. [...] - noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed. [...]
- toString(
) → String inherited - A string representation of this object. [...]
Operators
- operator ==(
Object other) → bool inherited - The equality operator. [...]
- operator [](
int group) → String? inherited - 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.13.0/dart-core/RegExpMatch-class.html