lib/parser.c: add match_wildcard() function