Path: utzoo!censor!comspec!lethe!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!tymix!cirrusl!sunstorm!dhesi From: dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: pattern/wild card matching Message-ID: <2953@cirrusl.UUCP> Date: 15 Feb 91 02:28:54 GMT References: <6467@saffron1.UUCP> <844@caslon.cs.arizona.edu> <1991Feb13.023548.16194@dirtydog.ima.isc.com> Sender: news@cirrusl.UUCP Organization: Cirrus Logic Inc. Lines: 18 All the code referred to or posted seems to pay no special attention to the "/" character, which in a UNIX environment has special meaning. It would be really nice if code were available that would do the following things: 1. Either require "/" to be explicitly matched or allow it to be matched by wildcards. For example, * would match any character sequence except slash, but ** would match any character sequence. 2. Allow the C-shell brace notation for grouping, i.e., {a,b,c}d in a pattern would match any of ad, bd, and cd in the filename. I found Karl Heuer's posted code very useful, but it would be even nicer if somebody had a canned routine that includes the above features. -- Rahul Dhesi UUCP: oliveb!cirrusl!dhesi