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 Apps / How do I extract email...
Power Apps
Answered

How do I extract email address from a string?

(0) ShareShare
ReportReport
Posted on by 9

Hi, what is the best way to search and extract an email address from a string? Thanks!

 

Sample String:

I am Peter Watts from ABC Co. Ltd. and my email address is pw@abc.com while my phone number is 123-345-567.

Categories:
I have the same question (0)
  • Verified answer
    PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Hi @cckiat9999
    I am sure there is a better way to do it but if your text will have only one email address, then you can use this: 

    Last(Split(First(Split("Your Text", "@")).Result, " ")).Result & "@" & First(Split(Last(Split("Your Text", "@")).Result, " ")).Result

    Let me know if this helps. I will try to come up with a better/cleaner approach. 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Microsoft Business Applications MVP

    Microsoft Certified Trainer MCT

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

  • cckiat9999 Profile Picture
    9 on at

    Thanks, Hardit. This works well. I was thinking if 'Match' function is able to do something similar, since 'Match' and its enum Match.Email is able to tell if there is an email address within the string. Cracked my head for hours and decided to use your way 🙂 Thank you!

  • 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.co

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard