The man page for regcomp on NetBSD says: An empty parenthesized subexpression, `()', is legal and matches an empty (sub)string. An empty string is not a legal RE. Dax