Test if a given uri matches a regular uri pattern
uri
static bool match(String uri) { return regularPattern.allMatches(uri).isNotEmpty; }