matches function

Matcher matches (dynamic re)

Returns a matcher that matches if the match argument is a string and matches the regular expression given by re.

re can be a RegExp instance or a String; in the latter case it will be used to create a RegExp instance.

Implementation

Matcher matches(re) => new _MatchesRegExp(re);