Add a simpler regex that works in older PCRE versions, and a fallback for when PCRE is missing, fixes #21