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 / How to use RegEx conne...
Power Automate
Suggested Answer

How to use RegEx connector in MS Flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I am trying to setup RegEx connector in my MS Flow. 

 

My incoming source to RegEx connector is an email and in there it contains this string as part of the body.

 

<span style="background: yellow">82</span></b></p>

 

And i am trying to extract 'yellow' from it

so I tried this 'regular expression 

<span style="background: (\s+)">82</span></b></p>

 

background:(\s+)

 

Can you please tell me how can I solve my problem?

 

Thank you.

Sam

 

 

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @scheu,

     

    I am afraid that RegEx has not been supported currently, I have seen a similar request on Flow Ideas Forum, please vote the idea at here:

    https://powerusers.microsoft.com/t5/Flow-Ideas/Support-for-regex-either-in-conditions-or-as-an-action-with/idi-p/24768

     

    About your scenario, do you want to extract the color of the background from the body of the email?

     

    If yes, please try with WDL functions. The following thread could be your reference, please check it at here:

    https://powerusers.microsoft.com/t5/General-Flow-Discussion/Microsoft-Flow-and-regex/td-p/118367

     

    If you need more help, please feel free post back.

     

     

    Best regards,

    Mabel Mao

  • Suggested answer
    Matkje Profile Picture
    22 on at
    Hey
     
    You can extract it by specifying a starting and an end point of the text and get everything in between. Like so:
     
    (?=Starting point) .* (?=End Point)
     
    That get's everything in between the two specified points. It's elaborated on here, if you are interested:
     
     
    Best regards
    Mathias Kjeldsen
     
    ---
    If this has helped solve your problem, please mark it as an helpful answer. 

    Connect with me on social platforms by using the links below.
    YouTube: https://www.youtube.com/@matkjeldsen 
    LinkedIn: https://www.linkedin.com/in/mathiaskjeldsen/

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard