Hi guys, I have an integer attribute containing all node_ids. I need to split those ids apart. The number of integers for all ids is similar (e.g. 7 integers). I came to this attribute by extracting the ids of the child nodes from a json file. I used this expresion (json["data"][*]["id"]), I used the * here because I have so many ids and I need them all. The result is one attribute with all node ids without any seperation between them (which i could have used to split them). So, the result e.g. is as following (72523657255486725577872521357256895). I know that I can use the attribute splitter to seperate them as the following picture but I need to be able to split them using some kind of expersion which split each 7 integers at once because I might have handreds of ids and it is not practical to keep counting them and then use 7s equivalent to their number. Therefore, my question is: Is there a way to add a comma or semicolon between the node ids when I extract them from the JSON file? or Is there any regular expression which I can use in the attribute splitter to do this trick automatically? Or is there any other transformer which will help?
Thanks a lot for your help in advance,
Best answer by takashi
View original