Regex Barcode

This can be used for industrial barcodes that are not GS1 Barcodes. You can configure the parsing through the Barcode Regex field.

Example

Basic structure: A barcode regex typically matches strings of digits with a fixed or variable length. For example, ^\d{12}$ matches exactly 12 digits, which is common for UPC-A barcodes.

Common barcode patterns:

  • UPC-A: ^\d{12}$ (12 digits)

  • UPC-E: ^\d{6}$ (6 digits)

  • EAN-13: ^\d{13}$ (13 digits)

  • Code 128: ^[\x00-\x7F]{1,}$ (ASCII characters)

Last updated

Was this helpful?