modified wildcards matching