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,614 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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard