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 / Splitting a string usi...
Power Automate
Suggested Answer

Splitting a string using regular expression

(0) ShareShare
ReportReport
Posted on by 2
I have a string that I need to split based on a regular expression. I tried using match in a compose but it is not supported...has anyone done this?
     match(outputs('Compose'), '\d{2}—\d{6}—\d{4}—CJ')
Categories:
I have the same question (1)
  • Suggested answer
    David_MA Profile Picture
    14,056 Super User 2026 Season 1 on at
    Regular expressions are not supported by Power Automate expressions. I believe there are some third-party actions that can handle this, but I have not used any of them as they have added costs. Here is one I have considered in the past: How to use match, test, and replace regular expressions in Power Automate, Azure Logic Apps, or Power Apps.
     
    Another alternative is to write a an Office Script in Excel and have the flow use Excel to process the value. I have had limited success with this, but you can learn how to do that at How to use RegEx in Power Automate | andersjensenorg
  • Suggested answer
    LS-23051659-0 Profile Picture
    2 on at
    I ended up doing an Azure function...but I think its amazing that in 2025 we don't have this simple function...just makes things complicated for simple task.  

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 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard