Determinate format from ag and ack

Regex match on the grepprg variable