Table transformations

How to split a category path into levels

2026-06-20
Task

The path column contains a value such as Clothing/Jackets/Winter. The export needs category_1, category_2, and category_3.

Short Answer

Create three final columns from path and keep the needed part with a regex rule in each one.

How to Do It in Eofferix

  1. Open the category_1 column settings in the table editor.
    Opening category_1 settings
    The red frame shows where to open the required column settings.
  2. For category_1, add regex ^[^/]+ with action Remove everything except.
    Extracting the first category level
    The rule keeps the part before the first slash.
  3. Use (?<=/)[^/]+(?=/) for category_2 and [^/]+$ for category_3.
  4. Save the column settings.

Before / After

Before

source data
skupath
SKU-1001Clothing/Jackets/Winter

After

result
skucategory_1category_2category_3
SKU-1001ClothingJacketsWinter

Process data faster with Eofferix

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

Sign up