Returns true if an attribute's string matches a regular expression. The expression is a raw string (r'foo').
true
r'foo'
static Converter<bool> ifMatches(regexp) => (s) => RegExp(regexp).hasMatch(s);