Plan 9 from Bell Labs’s /n/sources/patch/applied/pci-did/readme
did is a hex number, so it should be matched with [0-9A-F].