Task
images contains several URLs separated by semicolons. The first URL should go to main_image; the rest should go to additional_images.
Short answer
Create two columns from images: in main_image, keep everything before the first ;; in additional_images, remove everything up to the first ;, then remove the separator.
How to do it in Eofferix
Open the settings of
main_imageand selectimagesas the source.
The outline shows where to open main_imagesettings.For
main_image, add:Regular expression→^[^;]+→Remove everything except; then trim edges.
main_imagekeeps only the first URL before the;separator.Create
additional_imagesfromimages:Contains substring→;→Remove before; thenContains substring→;→Remove substring; then trim.
These rules remove the first URL and keep the remaining URLs. Save the template and run the transformation on the final step.
Before / after
Before
source data| sku | images |
|---|---|
| SKU-100 | https://cdn.example/en-main.jpg; https://cdn.example/en-side.jpg; https://cdn.example/en-back.jpg |
After
result| sku | main_image | additional_images |
|---|---|---|
| SKU-100 | https://cdn.example/en-main.jpg | https://cdn.example/en-side.jpg; https://cdn.example/en-back.jpg |