regex.h, regcomp and regexec? Standard?

Andrew Tridgell tridge at samba.anu.edu.au
Sat Apr 11 06:40:10 GMT 1998


> 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


More information about the samba-technical mailing list