regExpHasMatch function

bool regExpHasMatch(
  1. Object? regExp,
  2. String s
)

Returns true if regExp has any match at s.

regExp Uses parseRegExp to parse.

Implementation

bool regExpHasMatch(Object? regExp, String s) {
  var theRegExp = parseRegExp(regExp);
  return theRegExp != null && theRegExp.hasMatch(s);
}