Hi! I have a “comma separated” text like this 2,4,3,5,5,5
Can I convert this to a list of numbers through regex? So my list of numbers gets like this: 2,4,3,5,5,5
Any Idea of how the regex pattern must be like?
Hi! I have a “comma separated” text like this 2,4,3,5,5,5
Can I convert this to a list of numbers through regex? So my list of numbers gets like this: 2,4,3,5,5,5
Any Idea of how the regex pattern must be like?
You want to convert the text to a number…I am not sure if you need regex for this, maybe somebody who knows it would tell you otherwise.
Without regex bubble does have the ability to turn text to a number. :Convert to Number is an operator available in workflows, so if you want to create a custom state that is a list of numbers you can use that operator on your list of text I believe.
Thank you for your reply I did a workaround through states, which first converts all the numbers to a string, then replaces it with numbers and comma 1,2,3,4… and at last converts it to a list of numbers trough regex… So it manage to handle duplicates as well.
Best regards, Endre
This topic was automatically closed after 70 days. New replies are no longer allowed.