Reuse posix-regex matcher from fnmatch
I wrote fnmatch a while ago, and the matcher is pretty bad. The wildcard simply tries each length until it matches. See code. For a solution with linear runtime we can reuse the matcher I wrote for posix-regex. Then fnmatch would basically generate tokens for that matcher, and not do any matching on its own.