How do you tell if two wildcards overlap?
- by Tom Ritter
Given two strings with * wildcards, I would like to know if a string could be created that would match both.
For example, these two are a simple case of overlap:
Hello*World
Hel*
But so are all of these:
*.csv
reports*.csv
reportsdump.csv
Is there an algorithm published for doing this? Or perhaps a utility function in Windows or a library I might be able to call or copy?