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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.tillit.cloud/tillit/knowledge-base/setting-up-tillit/activity-templates/activity/elements/data-types/regex-barcode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
