web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Split with different d...
Power Automate
Unanswered

Split with different delimiters

(0) ShareShare
ReportReport
Posted on by 1

I need to split a element in a array into another array, but the delimiters varies.

[

"  ",

"",

"Apple,Orange,[Pineapple],GreenApple/Suggar"

]


I need the following output:

"Apple",

"Orange",

"Pineapple",

"GreenApple",

"Suggar"

]

The only way that I can think is to search and replace symbols like "[", "]", "/" for only one "," and then split in the standard way.
Is there a more intelligent way to do so?

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at

    Hi @PLFMendes ,

     

    Can you show me the orignal string and the split function you used on that string create the array:

     

    [
    
    " ",
    
    "",
    
    "Apple,Orange,[Pineapple],GreenApple/Suggar"
    
    ]

     

    It may be possible to clean up the string to make it easier to extract the items later.

     

    Ellis

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @PLFMendes,

    I think the best method is to replace the symbols like "[", "/", with ",".

     

    split(replace(replace(replace(last(outputs('Compose')),'[',''),']',''),'/',','),',')

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard