Task
The product size is inside the name, for example Basic T-shirt XL black. The export needs a separate size column.
Short answer
Create size from name and keep only the size with \b(?:XS|S|M|L|XL|XXL|XXXL)\b|\b\d{2}\b.
How to Do It in Eofferix
- Open the settings of the output
sizecolumn.
The click is on the settings icon of the sizecolumn. - In
Transformations, add aRegular expressionrule withRemove everything except:\b(?:XS|S|M|L|XL|XXL|XXXL)\b|\b\d{2}\b.
The Transformationsblock shows the full rule chain for this case. - Save the column settings and go to the
Exportstep.
Before / After
Before
source data| sku | name |
|---|---|
| SKU-300 | Basic T-shirt XL black |
| SKU-301 | Outdoor jacket 48 blue |
After
result| sku | size |
|---|---|
| SKU-300 | XL |
| SKU-301 | 48 |