CommonRegex ported to Dart