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 / Check E-Mail subject w...
Power Automate
Unanswered

Check E-Mail subject with RegEx (check two mails)

(0) ShareShare
ReportReport
Posted on by

Hi

 

I need a flow that check the E-Mail subject for a specific substring like this "Nr. 123456789". I have this RegEx:

 

(Nr.\s1\d{8}):

https://regexr.com/4i2v1

 

In my case it will be have always two mails with the same number (Nr. 123456789) but not the same subject-string.

But i can't use RegEx on MS Flow? Is there another way? The Flow dont must work with trigger like "incomming mail", it can be scheduled flow or a button flow

 

The second problem that i have is, that i must check the second mail with the same number. Which way is better to solved this problem? Trigger the flow by every incoming mail, or check every 5min all mails to find the two mails with the same number...

 

I hope someone can help me at least for the RegEx

 

example for the subject:

Mail 1 subject = "Lorem ipsum Nr. 100448899 dolor sit amet"

Mail 2 subject = "At vero eos et accusam Nr. 100448899 no sea"

 

Categories:
I have the same question (0)
  • MattWeston365 Profile Picture
    1,701 on at

    Hi @Anonymous 

     

    I answered a similar question a few weeks ago where were trying to isolate a particular string pattern within the bod of the email. You could follow something similar to get the same from the Subject:

     

    https://powerusers.microsoft.com/t5/Building-Flows/Creating-Email-Reply-Flow-to-post-item-to-a-SharePoint-List/m-p/311867#M33180

     

    Basically what we did was get the index of a specific character patter e.g.  "Nr. " and then slowly reduce the string until we'd isolated the exact text that we wanted.

     

    Let me know if you need any more help with this

  • Community Power Platform Member Profile Picture
    on at

    Hi

     

    But that will not help me to find the second Mail, and i dont want to extract i will match, or did i understand something wrong in your post?

     

    Thx for the help

     

     

  • Community Power Platform Member Profile Picture
    on at

    it would be helpful to have regex action  , 

  • Suggested answer
    Matkje Profile Picture
    22 on at
    RegEx is available in Power Automate now. Luckily. So this problem should be fairly easy to handle now - at least the first part of your problem.
     
     
    Best regards
    Mathias Kjeldsen

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard