Fix wildcard matching

I couldn't make all of your tests work, but the cpeset2_3 doctest I added now works with a %01 wildcard (example from my issue #5 ).