Add doctest for wildcard matching