> For the complete documentation index, see [llms.txt](https://help.tillit.cloud/tillit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.tillit.cloud/tillit/knowledge-base/setting-up-tillit/activity-templates/activity/elements/data-types/regex-barcode.md).

# Regex Barcode

<figure><img src="/files/nl4HX5BOFLRw3IxS374u" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/8rYUhETl8jxORGsKm3nc" alt=""><figcaption></figcaption></figure>

### 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)
