You are here:  » Filter to remove text after comma


Filter to remove text after comma

Submitted by sydney880 on Sun, 2017-11-26 07:06 in

Hi,

I have a feed which for the Image URL field, it has multiple URLs separated by commas.
eg.
https://media.example.com/catalog/product/Y/2/xxx.jpg,https://media.example.com/catalog/product/Y/2/yyy.jpg

Is there a filter that I can use that would delete all the text after the first comma, so that the image is just picked up as the first one?

Thanks

Submitted by support on Mon, 2017-11-27 09:51

Hello Sydney,

Sure - use an Explode filter with a comma as the Explode Character or String, and 0 (zero) as the Return Index and that will extract the first URL from the comma separated list...

Cheers,
David.
--
PriceTapestry.com