somehow everyone trying to decode Farnell / Mouser / Digikey 2D barcodes, for ma...
Graham Sutherland / Polynomial @gsuberland@chaos.social
somehow everyone trying to decode Farnell / Mouser / Digikey 2D barcodes, for many years now, has decided that they must do so with regex because the format "isn't documented".
except it took me about ten minutes to figure out that they're Data Matrix with ANSI MH10.8.2 Data Identifiers (DIs). the barcodes contain non-printable characters which delimit the fields, as per spec.
barcodes start with [)>\x1e06 which indicates that it's a Format 06 barcode (DI). fields are delimited by \x1d