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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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,985 Super User 2026 Season 1 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard