> Also, does anyone know anything about the POSIX regex functions (in > regex.h)? Is there a reason to use PCRE even when the POSIX regex > functions are available? I've coded up a quick proof-of-concept using > the POSIX regex functions, but I'm not sure why httpd doesn't use the > POSIX library (unless it isn't very common). I haven't come across a > system that didn't have POSIX regex, but I'll bet there is one. > However, both of the "target" platforms (Solaris and Linux) both have > the POSIX regex libraries. So, I'm tempted not to use PCRE unless > there is a good reason to. -- justin
POSIX regex isn't available on all platforms, on some it is slower than PCRE, and on others (like Solaris 2.5 and earlier) it is just broken. We chose to use it by default in 2.0 because there weren't any platforms for which PCRE was slower than the system regex and we were tired of dealing with misdirected bug reports. ....Roy