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 / unable to split string...
Power Automate
Answered

unable to split string into array incase of multiple "-" as delimiter

(0) ShareShare
ReportReport
Posted on by 19

Hi, 

I assumed it to be simple, turned out to be much more difficult than I thought :(. 

 

I have the email subject as: 

1.  Your School ID 123 – FirstName – LastName – Here are your Assessment results. 

or 

2. Your School ID 123 – FirstName – MiddleName - LastName – Here are your Assessment results.

 

I want to convert this string into an array(may using split)  using the "-" delimiter.

 

Vimukt_1-1697675178388.png

 

 
Vimukt_0-1697675139915.png

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Vimukt ,

     

    Cause '–' and  '-' are different.

    Please try:

    split(replace(variables('Email Subject'),'-','–'),'–')

    vbofengmsft_0-1697677685750.png

     

    Best Regards,

    Bof

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 58

#2
David_MA Profile Picture

David_MA 53 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 36 Most Valuable Professional

Last 30 days Overall leaderboard