matches method

bool matches(
  1. RegExp regex
)

Returns true if this char sequence matches the given regular expression.

Implementation

bool matches(RegExp regex) => regex.hasMatch(this);