regex: add regexec_buf() that can work on a non NUL-terminated string