isMatch method

bool isMatch(
  1. String regexp
)

判断字符串是否匹配正则表达式

返回一个布尔值,表示字符串是否匹配正则表达式

Implementation

bool isMatch(String regexp) {
  return RegExp(regexp).hasMatch(this);
}