Xref: utzoo comp.sources.wanted:7420 comp.unix.questions:13668 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!unmvax!deimos.cis.ksu.edu!cveg!hcx!mhb From: mhb@hcx.uucp (MARK H BOTNER) Newsgroups: comp.sources.wanted,comp.unix.questions Subject: pattern matching Keywords: pattern matching Message-ID: <2414@cveg.uucp> Date: 17 May 89 19:55:03 GMT Sender: netnews@cveg.uucp Followup-To: comp.sources.wanted Organization: College of Engineering, University of Arkansas, Fayetteville Lines: 12 Can anybody help me with pattern matching? I'm trying to match a string against a pattern such as '*' or '*.*' in the same manner that the 'ls' command uses. I've tried regex and regexp and I've even downloaded regex.Z from uunet.uu.net, but none of these work like I want. Actually I probably only need the wildcard characters '*' and '?', but it wouldn't hurt to have the full expression syntax that the 'ls' command uses. Thanks! P.S. if you have any answer or a subroutine for me, please mail it to me. My address is: mhb@cseg.uucp