Discussions
Product feed export formula for item category and subcategory
Hi, we are working on a product feed export that will be used with a 3rd party marketing platform and I need to have both a category and a sub category column. I am thinking if I was able to trim the last two children out of the preferred category's hierarchy I would have a good data set.
Example String:
Home > Gear > Fishing Tackle > Fishing Hooks
So for this example, I can return 'Fishing Hooks' with this formula:
rtrim(regexp_substr({categorypreferred},'[^>]*$'))
But I am having a hard time getting the formula right for returning 'Fishing Tackle' - can any of you REGEX wizards help me figure this out?