InputBoundary class
Allows matching the beginning and/or end of the expression input.
Example:
import 'package:fancy_regex/fancy_regex.dart';
// Match input that begins with "ID"
RegExp exp = FancyRegex(
expression: InputBoundary(
RawExpression("ID",),
start: true,
),
);
print(exp.pattern,); // ^ID
exp.hasMatch("ID123",);
- Implemented types
- Available Extensions
Constructors
- InputBoundary(RegExpComponent expression, {bool start = false, bool end = false})
-
Attach
^
and/or$
to expressionconst
Properties
- end → bool
-
If
true
, applies a$
symbol at the end of the expressionfinal - expression → RegExpComponent
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → bool
-
If
true
, applies a^
symbol at the beginning of the expressionfinal
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