a TLE solution for wild card matching.
another TLE solution.