did is a hex number, so it should be matched with [0-9A-F].