(now that you're editing this part, i would use a constant `ID_RE`  with value `[a-f0-9]{24}` for defining the rest of regexps, but i'm okay if you don't)