Enhance the wildcard to regexp conversion