Automatic representation of hierarchical structures (folders, regular expressions, etc.)