Use PCRE_NOTEMPTY rather than PCRE_NOTEMPTY_ATSTART.