Skip to main content

My dataset has an attribute that contains a list of item descriptions and hyperlinks:

Item 1|http://www.item1.com^Item 2|http://www.item2.com^Item 3|http://www.item3.com

I'd like to change the contents of the attribute into a bullet list in Markdown:

* [Item 1](http://www.item1.com
* [Item 2](http://www.item2.com)
* [Item 3](http://www.item3.com)

What would be the best way to do this? The list in the attribute can contain zero, one or n items.

On solution could be to use an AttributeSplitter on "^" followed by a ListExploder and a StringReplacer where you look for the following regex:

^([^\|]*)\|(.*)$

and replace it with:

* [\1](\2)

On solution could be to use an AttributeSplitter on "^" followed by a ListExploder and a StringReplacer where you look for the following regex:

^([^\|]*)\|(.*)$

and replace it with:

* [\1](\2)
Thank you very much!