Fix problems in POSIX and PCRE regex engine wrappers.
Fix problems in POSIX and PCRE regex engine wrappers.

The POSIX wrapper did not correctly adjust the match offsets for cases beyond
the first match.

The PCRE wrapper did not handle the NOMATCH "error".

AltSysrq/tglng