How to generate all words from a given sequence of strings ? Regular expression can help on that ?
Example : I have the following set of strings : a, bc, def, I want to get all available string combinations after concatenating those strings :
abcdef
adefbc
bcdefa
bcadef
defabc
defbca
Note : Here the number of string is 3, I want to have generale rule to be applied for that : > 3 sets of strings ( Like reading the same from excel column).
Thanks a lot @T0Bi for prompt feedback.
In fact I find some codes written in different languages but not able to convert that into UiPath format, Could you please help on that with simple example ?
Thanks in advance
Well yes, the question is, do you want me to simply build a solution for you, or do you want to understand it?
If you want to understand it, try to understand both posts (and the code). Once you understand how recursion works, you can easily build this in UiPath.
In the meantime, I’ll try to build you an example workflow
Thanks for Pushing me to understand rather than getting the code directly;
Anyway I will try to build the same in the coming hours , if not possible to do that I will ping you to share what you did from your side
Thanks @T0Bi , Tell me Which Packages you include in this Workflow? Because I got many error when opening the same. Seems you’re using newer version of UiPath.
I have deleted the JSON file and start again but still got the following Errors :
Thanks a lot @T0Bi , Works fine, just my query is to print combinations without repetitions, I will try to manage that based on your code.
I need only the following combinations :
a def bc
bc def a
bc a def
def a bc
def bc a
By the way I see the output is restricted to 3 items only even if the input is More than that, no?
Great !!! Still only one issue , How to remove those repetitions ?
By repetitions I mean there will be only the appearance of each character once in the output.
Example :
if the input is “a” , “b” , “c” I need to have only the following :
abc, acb, bca, bac, cab, cba…and no need for aaa, bbb, ccc, aab, aac…etc