Regex convert text with comma to a list of words for repeating group

Hey everyone,

I am calling a translation API for my app and get a text including comma as an output.
image

I want to split this text into a list in a repeating group. Here is the result I am lookinf for
image

I guess it should work with regex but cannot figure out how to do it.

Does somebody know how to do ?

Thanks

1 Like

Hey @petit-ricard,

Here is a regex string that will work:
[^,]+

Also, because you are retrieving a list of channel_name’s rather than just one, you also need to insert a comma between all those before you run the regex. You use :join with “,” (just type a comma, the double quotes will be added for you.)

Here’s what it looks like:

Which turns this:

Into this:

Hope that helps!

–Ken



Looking to accelerate your app development?

Development of Advanced Apps at https://uniqueideas.com or schedule a free intro session :gift:

Ken Truesdale
LinkedIn

4 Likes

Heu @mebeingken

Thanks that helps a lot ! :slight_smile:

I want to do it only for the last channel name.
When I include last item it does not work.

How can I do ?

Thanks,
Cheers

This works for me…

4 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.