The `isDotAll` property in Dart's `RegExp` class determines whether the '.' character in the regular expression matches line terminators.
The syntax of RegExp.isDotAll property is:
bool isDotAll
This isDotAll property of RegExp whether "." in this regular expression matches line terminators.
RegExp.isDotAll returns value of type bool
.
In this example,
void main() {
RegExp pattern = RegExp('.', dotAll: true);
print(pattern.isDotAll);
}
true
In this example,
void main() {
RegExp pattern = RegExp('.', dotAll: false);
print(pattern.isDotAll);
}
false
In this Dart tutorial, we learned about isDotAll property of RegExp: the syntax and few working examples with output and detailed explanation for each example.