I've reworked the matchesWild function, caling it
grepWild. It takes the wildCard parameter as before but instead of all the substr stuff, it replaces '?' with '.', '*' with '.*' and wraps with '^' and '$'. Then it feeds that into match().
It's simpler, easier on the eyes, and faster too.© Bruce M. Axtens, 2010