pattern/wild card matching

Rahul Dhesi dhesi%cirrusl at oliveb.ATC.olivetti.com
Fri Feb 15 13:28:54 AEST 1991


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 <dhesi%cirrusl at oliveb.ATC.olivetti.com>
UUCP:  oliveb!cirrusl!dhesi



More information about the Comp.lang.c mailing list