Task
The volume_ml column stores volume in milliliters, for example 750 ml. The output column needs liters.
Short answer
Keep the number with \d+(?:[,.]\d+)?, then divide the value by 1000.
How to Do It in Eofferix
- Open the settings of the output
volume_lcolumn.
The click is on the settings icon of the volume_lcolumn. - Add
\d+(?:[,.]\d+)?withRemove everything except, then addDivideby1000.
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 | volume_ml |
|---|---|
| SKU-700 | 750 ml |
| SKU-701 | 1500 ml |
After
result| sku | volume_l |
|---|---|
| SKU-700 | 0.75 |
| SKU-701 | 1.5 |