Table transformations

How to remove rows with invalid EAN/UPC barcodes

2026-06-20
Task

barcode contains valid codes and invalid values such as ABC-123. The export should keep only rows with numeric EAN/UPC-like codes.

Short answer

In barcode, add a row export condition: before transformations, the value must match ^(?=........$|............$|.............$|..............$)[0-9]+$.

How to do it in Eofferix

  1. Open the settings of the barcode column.

    barcode column settings in Eofferix
    The outline marks the column used to filter the row.
  2. In Export conditions, add a row condition: scope Before transformations, condition Regular expression, value ^(?=........$|............$|.............$|..............$)[0-9]+$. This checks length 8, 12, 13, or 14 without curly braces, which Eofferix uses for field tokens.

    Row export condition for a valid-looking barcode
    Rows where barcode does not match the expression are excluded from the result.
  3. Save the template and run the transformation on the final step.

Before / after

Before

source data
skubarcodename
SKU-1004601234567890Desk lamp
SKU-200ABC-123Office chair
SKU-30012345678Folding chair

After

result
skubarcodename
SKU-1004601234567890Desk lamp
SKU-30012345678Folding chair

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up