Iterable<String> pathPlaceholders(String path) sync* { final re = RegExp(r'\{([a-zA-Z_][a-zA-Z0-9_]*)\}'); for (final m in re.allMatches(path)) { yield m.group(1)!; } }