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 / 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
    12,982 Super User 2025 Season 2 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

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard