gref pattern