Re: regex.h, regcomp and regexec? Standard?

Andrew Tridgell (tridge@samba.anu.edu.au)
Sat, 11 Apr 1998 16:40:10 +1000

From:	Andrew Tridgell <tridge@samba.anu.edu.au>
To:	sharpe@ns.aus.com
Subject: Re: regex.h, regcomp and regexec? Standard?
Message-Id: <19980411064021Z12640949-458+1912@samba.anu.edu.au>
Date:	Sat, 11 Apr 1998 16:40:10 +1000

> I have used <regex.h>, regcomp and regexec. Are these available on all
> systems?

unfortunately not, but most will have them.

What we should do is either:

1) include one of the GPLd regex implementations with Samba and use
that on systems that don't have it.
2) use one of the existing wildcard handling routines that are already
in Samba.

The latter is probably preferable. is mask_match() sufficient for your
needs?

Cheers, Andrew