grep: use REG_STARTEND (if available) to speed up regexec