Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!spdcc!ima!dirtydog!karl From: karl@ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: wildcard matching Message-ID: <1991Jan04.181333.20960@dirtydog.ima.isc.com> Date: 4 Jan 91 18:13:33 GMT References: <4739.277BA2FB@urchin.fidonet.org> <579@cadlab.sublink.ORG> <14267@june.cs.washington.edu> <584@cadlab.sublink.ORG> Sender: news@dirtydog.ima.isc.com (NEWS ADMIN) Organization: Interactive Systems Lines: 10 Ins <584@cadlab.sublink.ORG> staff@cadlab.sublink.ORG (Alex Martelli) writes: >One more reson to do wildmatch() right, then! But first, check whether it needs to be done at all; and if so, implement it using the standard interface. Many libraries, and at least one influential standard, already contain "int gmatch(char *str, char *pat)". It handles not only "*" and "?" but also "[xyz]" and "[!xyz]" (yes, that's a bang, not a circumflex; glob vs regexp strikes again). Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint