Skip to main content
Question

Any suggestions on how to convert contents of attribute into bullet list in Markdown?


friesewoudloper
Forum|alt.badge.img

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.

2 replies

david_r
Celebrity
  • October 25, 2018

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)

friesewoudloper
Forum|alt.badge.img
david_r wrote:

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! 

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings