Using this variable in an abandoned cart email:
{{ event.extra.line_items.0.product.tags|default:'' }}
The output value is this:
Australia, CEUS:2.4 IACET CEUs, Dates: Apr. 1 - 10 2025, Duration: 12 weeks, Format: On-Site, Language: English, Location: Virtual, Region: All, show_upsell, Type: COSP F
Within that I don’t need to display all the tags as they make no sense to a user. Instead we need to parse out specific tags such as "Location: XXX".
Do you know how to parse for value matches inside this comma-separated list? For instance, I don't need "CEUS: 2.4 IACET CEUs" tag #1 but I do need "Dates:" and "Location:" and "Duration:" tags in the email. The tags are all based on a naming convention prefix such as “Language: value” or “Type: value”.