Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!snorkelwacker!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Wildcard Expansion Message-ID: <15821@haddock.ima.isc.com> Date: 1 Feb 90 15:58:05 GMT References: <8466@pogo.WV.TEK.COM> <9460@ttidca.TTI.COM> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 15 In article <9460@ttidca.TTI.COM> paulb@ttidca.TTI.COM (Paul Blumstein) writes: >In article <8466@pogo.WV.TEK.COM> bluneski@pogo.WV.TEK.COM (Bob Luneski) writes: >>Does anyone have a general wildcard expansion code... >See if your system has re_comp & re_exec... Wildcard globbing is not the same thing as regexp matching. You could do it that way, but you'd have to translate the wildcard pattern to a regexp first. Also, re_comp and re_exec are Berkeleyisms. On SysV you're more likely to have instead. (Henry Spencer's regexp routines are better than either of those, so that may be the best approach.) I've sent Paul a globbing routine by email. Karl W. Z. Heuer (karl@ima.ima.isc.com or harvard!ima!karl), The Walking Lint