Hey everyone,
I am calling a translation API for my app and get a text including comma as an output.
I want to split this text into a list in a repeating group. Here is the result I am lookinf for
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
Ken Truesdale
LinkedIn
4 Likes
Heu @mebeingken
Thanks that helps a lot !
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
system
Closed
May 17, 2019, 5:27pm
5
This topic was automatically closed after 70 days. New replies are no longer allowed.