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 Apps / Help with Match functi...
Power Apps
Answered

Help with Match function please

(0) ShareShare
ReportReport
Posted on by

A grand day to you all.

Please, may I trouble you for some help to use the Match function to extract email addresses. Here is my code I cannot seem to get working:
ClearCollect(collMatch, Match( "From: Sad Sack <sad@sack.org>", Match.Email).FullMatch)

I am just trying to get the email as text into a label, like this:  sad@sack.org

I would really prefer not to have to wrap the Match function in an intermediate Collection only to extract it later, but there may be no other way?

Any suggestion would be greatly appreciated.

Thanks so muchely.
 

Categories:
  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    If your text will always be in the same format as this: "From: Sad Sack <sad@sack.org>"

    Then you can use something like this:

    First(Split(Last(Split( "From: Sad Sack <sad@sack.org>", "<")), ">"))

    This is definitely not the only way, and isnt probably the best way but is something I have used in the past so wanted to share something quick with you. Will share a better way in sometime.

    Let me know if this helps.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • ChrisChong Profile Picture
    on at

    Thank you. I was rather hoping do find a solution using the Match function. I have a sense that the Match function may be more efficient, I could e wrong.

    Chris

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    What happens when you use just this?

    Match( "From: Sad Sack <sad@sack.org>", Match.Email).FullMatch

    Why do you need to use a collection?

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com
  • Verified answer
    PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Hi @ChrisChong 

     

    Try this: 

    Match( "From: Sad Sack <sad@sack.org>", "<(?<email>" & Match.Email & ")>").email

     

    This should work. 

     

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    https://thepoweraddict.com

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

    Thanks,
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com

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 Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard