MatchZeroOrMore class

Matcher that looks for existence of expression and returns a match if exists and includes any number of consecutive repetitions.

Example:

// Matches any character
MatchZeroOrMore(
  CharacterClass.any(),
);
// results in .*
Inheritance
Available Extensions

Constructors

MatchZeroOrMore(RegExpComponent expression, [bool isLazy = false])
Attach * to the end expression, optionally adding ? if isLazy is true
const

Properties

expression RegExpComponent
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isLazy bool
If true, returns a match right away without looking for more possible, longer matches
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited