expHasMatch static method

bool expHasMatch(
  1. String value,
  2. String express
)

正则表达式

Implementation

static bool expHasMatch(String value, String express) {
  String exp = 'r"$express"';
  RegExp url = new RegExp(exp);
  return url.hasMatch(value);
}