Checking collision in filename search patterns with wildcards
问题 I need to compare file system wildcard expressions to see whether their results would overlap, by only examining/comparing the expressions. For sake of example, we are building a utility that would sort files from one (or more locations) into a separate folders based on file system wildcard expressions. For example: *.txt goes into folder a, *.doc goes into folder b, and so on. The wildcard characters we would support would be * and ? I want to be able to determine from just analyzing the