The glibc implementation is quite large. Cutting the library-specific cruft it still sits at about 10k LOC. Using PCRE is a no-go, as it uses perl-compatible regexes even for the posix-compatible API, as per pcreposix(3):
I have a PCRE fork that has POSIX semantics (except the braindead leftmost-longest *sub*expressions). It weighs 8kLOC, you can find it in branch ssed of GNU sed's git repository.
Paolo -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html