The BSD grep for "basic regex" don't support \| as alternate operator. Use multiple -e arguments for expressing alternative.