Support POSIX regex matching.