hasMatch static method

bool hasMatch(
  1. String s,
  2. Pattern p
)

Returns whether the pattern has a match in the string input.

Implementation

static bool hasMatch(String s, Pattern p) => RegExp(p.toString()).hasMatch(s);